-
How to control multiple objects seperately
Hello everyone. I am a newbie in this subject and I would like to know if anyone outhere can help me on this:
I have 2 2D objects in my application and I would like to move them seperately on the x-y axis with the glTranslatef funciton because I am using GLUT with Borland Builder(I also want to find out how to choose them with the mouse if thats not too hard).
Also is there any url ý can download that superbible or do I have to buy it?
Thanks in advance for all you guys...
-
Advanced Member
Frequent Contributor
Re: How to control multiple objects seperately
glPushMatrix();
glTranslatef(x, y, z); // item 1
glPopMatrix();
glPushMatrix();
glTranslatef(x, y, z); // item 2
glPopMatrix();
or whatever.
you can create a selection buffer, there are many posts on this here, I assume there is a tut for it at gamedev.
tata
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules