Jump to content
  • Advertisement
Sign in to follow this  
majoub

OpenGL problems with display lists and transformations

This topic is 4634 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'm still new to OPENGL so you might find this trivial.. I have 4 objects defined in 4 display lists.. I am trying to click on each object and move it and scale. the only way to move display lists is through transformation right? so supposing I moved a display list object on the screen, is there a way to remember its position so that when I redisplay my output it appears at the correct position? thanks

Share this post


Link to post
Share on other sites
Advertisement
try to save old info in struct like
struct {
float x,y,z;
float sx,sy,sz;
....
....
....
}Tmp;
and put all the old info in objest from that struct .
i hope this is what u want .
cya,

Share this post


Link to post
Share on other sites
hi

this is what I eneded up doing...so I keep on retranslating and rescaling every time I have to draw my objects..


thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!