View Full Version : is tex env setting bind to texture object
09-21-2004, 06:18 PM
Are texture environment settings binded to texture object in opengl, so I just need to BindTexture with the tex obj, no need to set those env parameters everytime I use it?
09-21-2004, 07:07 PM
Yes, you got it.
09-21-2004, 10:45 PM
oops, I find these words in the redbook:
"When a texture name is initially bound (used with glBindTexture()), a new texture object is created with default values for the texture image and texture properties. Subsequent calls to glTexImage*(), glTexSubImage*(), glCopyTexImage*(), glCopyTexSubImage*(), glTexParameter*(), and glPrioritizeTextures() store data in the texture object."
it seems glTexEnv is not included. does it mean glTexEnv is not bound with tex object?
09-21-2004, 10:52 PM
glTexParameter are per texture object.
glTexEnv is per texture unit, IIRC.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.