glRasterPos2i( question )

Started by
2 comments, last by Jesper T 22 years, 7 months ago
I have this program; in it I render some 3D stuff (textured polys etc) At the end of the loop I want to draw the mouse cursor, I know how to get its position, but instead of using the glVertex3f .. can I use the glRasterPos2i to draw it ? ..or is the glRasterPos function something similar to glTranslate ? I have tried different functions to draw the cursor, but the only thing that seems to work is if I draw the cursor in 3D (which requires more resources than plotting it straight onto the screen and also have other disadvantages) Thanks for any tips on this
Advertisement
The RasterPos function is for glDrawPixels. Push the projection matrix, setup an orthographic projection matrix, render the cursor and other 2D stuff, pop the matrix.

[Resist Windows XP''s Invasive Production Activation Technology!]
OK, thanku
Youll probably never need to use glRasterPos, at least not as far as my knowledge of 2D game go ( I dont know abot 3D yet..) except for if you want to write text to the screen, maybe. I think there is a better method than using glRasterPos, though.



"I''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''Urden
------------------------------Put THAT in your smoke and pipe it

This topic is closed to new replies.

Advertisement