Jump to content
  • Advertisement

Archived

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

lo2

Selection in OpenGL for Bitmaps

This topic is 6107 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 all, Bit of a novice question here I''m afraid. I have a strip of bitmaps rendered to the screen (thumbnail style) in OpenGL. I need to allow the user to select these by mouse clicking. How do I do this? please if you could direct me to a tut or give help it would be greatly appreciated. I have tried Jeff''s selection technique on Nehe but that is for primitive and does not work on BMP''s. Thanks guys Paul

Share this post


Link to post
Share on other sites
Advertisement
Hi,

Here''s what I have come up with, the Bitmaps are drawn on a plane in the Z. In this case -8.0. So as I know the users resolution, and my Max/Min X,Y in openGL I simply convert the
current mouse co-ords to virual co-ords within that plane.

Now this actually seems to work quite well.

But if anyone else has ideas I''m open.

Prosper do you mean I should use them as textures?

Paul

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!