Advertisement

glTexEnvi using GL_REPLACE?

Started by October 31, 2001 08:13 PM
-1 comments, last by borfast 23 years, 3 months ago
From the OpenGL Blue Book, the glTexEnvi() function definition is the following: void glTexEnvi(GLenum target, GLenum pname, GLint param) PARAMETERS . . . param - Specifies a single symbolic constant, one of GL_MODULATE, GL_DECAL, or GL_BLEND. but in the book "OpenGL Game Programming, I see glTexEnvi() used with GL_REPLACE in the "param" parameter lots of times. The first time I noticed it, I thought "that''s probably an error, if I check the source it should be corrected" and so I did... but it was just the same as in the book. And when I tried to compile it, I expected an error but it runs just fine! Can someone explain me why and what does that parameter do? Thanks Raúl

This topic is closed to new replies.

Advertisement