Results 1 to 4 of 4

Thread: Simple display list question

  1. #1
    Member Newbie
    Join Date
    Apr 2003
    Posts
    33

    Simple display list question

    Let's say I've compiled a display list which has the following lines inside it:

    x := 0.5;
    y := 6*arcsin(x);
    glRotatef(y, 0, 1, 0);

    When I call the list will it go through the calculation of y again, or will it have already stored y and simply execute the command, glRotatef(pi, 0, 1, 0)?

    (Note: pi is 3.14159..., as you probably guessed, i.e. 6*arcsin(0.5) = pi.)

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Simple display list question

    Display lists don't record any machine code, only OpenGL calls and its parameters. So y is only calculated once.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2003
    Location
    UK
    Posts
    21

    Re: Simple display list question

    Also remember that not all GL commands are stored in display lists. There's a description of the ones which are not included in display lists here: http://www.opengl.org/developers/doc...l/newlist.html

  4. #4
    Member Newbie
    Join Date
    Apr 2003
    Posts
    33

    Re: Simple display list question

    Thanks.

Similar Threads

  1. Display list question
    By Lindley in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 06-02-2010, 02:12 AM
  2. Display List question
    By FrimaMichael in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 04-19-2010, 06:15 PM
  3. Display list question
    By darkrappey in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-20-2007, 03:44 PM
  4. Display list question
    By orion in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-03-2005, 01:22 PM
  5. display list question
    By incus in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-31-2002, 11:49 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