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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for