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: World Color

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    26

    World Color

    Ok, this should be a nice easy one for someone out there.

    I just can't seem to find it.

    How do you set the default world color from black?

    Right before I do any pushmatrix calls, I have this....

    glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    //glColor3f(0.0f, 1.0f, 0.0f); //doesn't change the color

    I put a poly behind everything and colored that, but I know there's a better way.

    Thanks,

    Zath

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    658

    Re: World Color

    try glClearColor(0.0, 1.0, 0.0, 1.0);

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    26

    Re: World Color

    Excellent!

    Thanks,

    Zath

Posting Permissions

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