Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Opengl mode changing

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    12

    Opengl mode changing

    When you Enable or Disable things like GL_DEPTH_TEST, so this reset values that are linked to the mode like GL_DEPTH_TEST => glDepthFunc()?

    eg.

    glEnable(GL_DEPTH_TEST);
    glDepthFunc(GL_LEQUAL);
    glDisable(GL_DEPTH_TEST);
    // do some stuff
    glEnable(GL_DEPTH_TEST);

    will glDepthFunc change it's value back to the default when i re-enable DEPTH_TEST???

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

    Re: Opengl mode changing

    No, it will remain the same until you change it. It will even update to the new value you set even if it's disabled.

    Bob

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    12

    Re: Opengl mode changing

    Ok, Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •