Translating tevdef

The following code example is an IRIS GL texture-environment definition that specifies the TV_DECAL texture-environment parameter:

float tevprops[] = {TV_DECAL, TV_NULL}; 
 
tevdef(1, 0, tevprops); 
 

and the same code translated to OpenGL:

glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
 

The following table lists the IRIS GL texture-environment parameters and their equivalent OpenGL parameters.

IRIS GL Parameter OpenGL Parameter
TV_MODULATE GL_MODULATE
TV_DECAL GL_DECAL
TV_BLEND GL_BLEND
TV_COLOR GL_TEXTURE_ENV_COLOR
TV_ALPHA No direct OpenGL equivalent.
TV_COMPONENT_SELECT No direct OpenGL equivalent.

For more information about texture-environment parameters, see glTexEnv.