Results 1 to 2 of 2

Thread: How to control multiple objects seperately

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

    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
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    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

Similar Threads

  1. Multiple objects: single or multiple shaders?
    By sam_thedancer in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 04-29-2013, 03:29 AM
  2. Multiple objects in a VBO or Multiple VBOs?
    By Kreed in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-04-2012, 12:42 PM
  3. How to control lighting effects on objects?
    By simProG in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-20-2009, 02:02 AM
  4. Dual GPU control without SLI, Drawig to multiple GPUs (no SLI)
    By imported_dimensionX in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 11-28-2005, 04:47 AM
  5. How to apply transformation seperately
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-30-2003, 08:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean