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 2 of 2

Thread: Dumb question - GLclampf - why?

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Jul 2001
    Posts
    533

    Dumb question - GLclampf - why?

    Just looking more closely at glClearColor and it takes four GLclampf parameters. GLclampf resolves down to float on my PC. I was wondering what the design purpose of GLclampf is - and whether other implementations take advantage of this facility?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Dumb question - GLclampf - why?

    GLclampf is a value clamped to 0 and 1, and is of type float.. look up gl documentation for the official description, but i think thats it..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

Posting Permissions

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