#### Archived

This topic is now archived and is closed to further replies.

# glTexEnvi using GL_REPLACE?

This topic is 5889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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

• ### Forum Statistics

• Total Topics
628719
• Total Posts
2984388

• 25
• 11
• 10
• 16
• 14