Sprite maths?

BlitzMax Forums/BlitzMax OpenGL Programming/Sprite maths?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You don't have to calculate anything

Just make sure you do glMatrixMode GL_MODELVIEW (or whatever it is - might be glMatrix()) to select the modelview matrix, then do the glloadidentity() and the translates/rotates. It affects everything drawn after that point, so after you'd done the sprite, either do another sprite or reset the modelview matrix to the identity matrix with loadidentity() again.

This is basic stuff - go read the OpenGL red book and blue book online.