Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: How to control multiple objects seperately

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    2

    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...

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    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
  •