Jump to content

  • Log In with Google      Sign In   
  • Create Account


glRasterPos2i( question )


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Jesper T   Members   -  Reputation: 322

Like
Likes
Like

Posted 18 September 2001 - 11:52 PM

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

Sponsor:

#2 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 19 September 2001 - 01:12 AM

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!]

#3 Jesper T   Members   -  Reputation: 322

Like
Likes
Like

Posted 19 September 2001 - 04:36 AM

OK, thanku

#4 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 19 September 2001 - 04:40 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS