Results 1 to 4 of 4

Thread: Push attributes

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Italy
    Posts
    124

    Push attributes

    In my engine, before drawing each object I need to push all the attributes and then pop at the end...

    The question is:
    does saving all attributes is time expensive?

    thanks
    tFz

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Push attributes

    As every (or probably more than) any state change, it is. I couldn't imagine a situation where you have to change all attributes for every object.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Italy
    Posts
    124

    Re: Push attributes

    I meant if it was time expensive related to the time used to render the object that has a reasonable average of 10-20-30 or more faces.
    (Surely, a day I must look what changes are necessary...)
    Thx

  4. #4
    Guest

    Re: Push attributes

    Yes, it is time expensive.
    If speed is a concern should you save the state in your own variables.

Similar Threads

  1. push and pop matrix
    By hwj_just in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-12-2005, 11:53 PM
  2. push and pop attributes and shader
    By marco_dup1 in forum OpenGL: GLSL
    Replies: 4
    Last Post: 09-08-2004, 11:13 PM
  3. Replies: 1
    Last Post: 06-11-2004, 02:52 PM
  4. Push/Pop v.s. LoadMatrix?
    By NordFenris in forum OpenGL: Advanced Coding
    Replies: 15
    Last Post: 04-22-2003, 12:19 PM
  5. Why I need pop and push in open gl
    By MOON-GIRL in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-16-2002, 08: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