Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


help with simple bitmap buttons

This topic is 5598 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a scene which consists of a simply cub which I can rotate around using glulookat. I would like to be able to have a button (a bitmap or something) at the top right hand corner of the screen which I can click on. I''m not too worried about the clicking part but I have no idea how to stop the button moving with the scene. Help!!! Thanks <Fish>{

Share this post

Link to post
Share on other sites
Or simply try something like this:

glPushMatrix(); //stores the current "camera" position..

"Draw Cube";

glPopMatrix(); //restore the last saved "camera" position

"Draw Button";

Note that this will make the button have perspective, to use a bitmap efficiently use orthographic projection while drawing the button/s.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!