Page 1 of 1

Draw with floats and not s16, draw GX array with one function call.

Posted: Fri Apr 12, 2019 12:43 am
by Sam
Hi, I am building off the triangle example, and I am wandering how can I not use s16 to specify vertexes so I can use floats. I am also needing to know how to not use GX_Position1x8, so I can draw the entire array at once. Documentation about all the GX function calls would be very useful.

Gamecube glitches when more than 64 squares are drawn.

Posted: Sun Apr 14, 2019 5:54 pm
by Sam
Also when I draw more than 64 squares the vertices mess up. Is there a buffer I need to change the size of?

Re: Draw with floats and not s16, draw GX array with one function call.

Posted: Mon Apr 15, 2019 11:39 am
by WinterMute
The triangle example probably isn't the best one to be building off tbh, I'm not sure it actually works properly - it was one of the first experiments and hasn't really been touched in a long time. We have many examples under https://github.com/devkitPro/gamecube-e ... raphics/gx which show texturing & vertex coloring using float co-ordinates as well as fixed point ones.

The docs at https://libogc.devkitpro.org/ may also help.