View Full Version : querying of GLclampf and GLclampd data type arguments

11-01-2001, 06:25 PM
if I call glClearColor() with arguments greater than 1 or less than 0
say glClearColor( 1.1, -0.1, 2, 1)and then
query the set clearing color as

then what do you think it will return.

It think it will return the set values.But it is not doing that!!why?????...

FYI : the prototype for glClearColor is
glClearColor(GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha) ;

11-02-2001, 12:45 AM
Since the datatype is GLclapf, all values you pass will be cut to fit into the range[1, 0]. So I assume glGetFloatfv returns {1, 0, 1, 1}.