Results 1 to 2 of 2

Thread: OpenGL Code: Order of execution

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    USA
    Posts
    7

    OpenGL Code: Order of execution

    I am trying to understand the order of execution of openGL commands(API's). Are the commands executed as they appear in the code? For example if 'glOrtho()' is first and then 4 'glVertex()' commands are issue, are these executed in sequence or the openGL pipeline orders these commands to make sense out of it. Please bear with me as i am new to openGL and is trying hard to understand things.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: OpenGL Code: Order of execution

    More or less yes.
    Some commands that just sets a variable will of cause not take effect until a command that is dependent on this is called, though the variable will be changed when called.
    So any changes to glNormal, glTexCoord and glColor does not take effect until glVertex or something that renders a polygon is called, this is actually true with most openGL calls.
    The driver might do some internal restructuring, but this is only for performance reasons and should not impact the actual rendering.

    This is also not something you have to bother yourself with.

Similar Threads

  1. Replies: 1
    Last Post: 03-17-2013, 05:14 PM
  2. Order of execution of depth_clamp and depth_test
    By debinair in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-16-2013, 02:26 AM
  3. No Out of Order Execution
    By Banjobeni in forum OpenCL
    Replies: 5
    Last Post: 04-05-2011, 12:47 AM
  4. Order of execution?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-11-2001, 07:07 AM
  5. OpenGL program execution problems in C++ Builder
    By rohin in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-06-2000, 06:45 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