What do I have to do to my dimensions to apply max2d origin, handle, scale, rotation, etc to a quad I'm drawing? What about alpha and blend?
I thought I saw a way to do it by modifying the modules but that is less than optimal..
(Talking GetScale, GetHandle, GetOrigin, GetRotation etc..)
Current code:
I thought I saw a way to do it by modifying the modules but that is less than optimal..
(Talking GetScale, GetHandle, GetOrigin, GetRotation etc..)
Current code:
Function DrawTexturedQuad(x:Float, y:Float, w:Float, h:Float, texture:Int) 'Make transformations to dimensions glPushMatrix() 'Necessary? glBindTexture(GL_TEXTURE_2D, texture) glBegin(GL_QUADS) glTexCoord2f(0.0, 0.0); glVertex2f(x, y) 'Top-Left glTexCoord2f(1.0, 0.0); glVertex2f(x + w, y) 'Top-Right glTexCoord2f(1.0, 1.0); glVertex2f(x + w, y + h) 'Bottom-Right glTexCoord2f(0.0, 1.0); glVertex2f(x, y + h) 'Bottom-Left glEnd() 'Unbind texture?? glPopMatrix() 'Necessary? End Function