Results 1 to 3 of 3

Thread: glRotatef

  1. #1
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    102

    glRotatef

    If I have a couples of bricks like this:

    glBegin(GL_QUADS);
    ...
    glEnd();

    glBegin(GL_QUADS);
    ...
    glEnd();

    And I want the first one to rotate, and not the second, how do I do...?
    CyBBe

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    256

    Re: glRotatef

    Hi!

    Surround the blocks by a call to:

    glPushMatrix();
    glRotatef(...);
    glBegin(...);
    ...;
    glEnd();
    glPopMatrix();

    Hope this helps!

    Diapolo

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    102

    Re: glRotatef

    Thanx, it worked...
    CyBBe

Similar Threads

  1. glRotatef
    By kiwon0905 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-03-2012, 12:28 AM
  2. Replace two glRotatef() with one glRotatef()?
    By tgtt in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-24-2004, 02:33 PM
  3. glRotatef()
    By Rajveer in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-05-2002, 10:28 AM
  4. glRotatef
    By beet6 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-18-2002, 01:31 PM
  5. glRotatef
    By Krime384 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-01-2000, 02:46 PM

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