When porting IRIS GL texture functions to OpenGL, keep the following points in mind:
The following table lists IRIS GL texture functions and their general OpenGL equivalents.
IRIS GL Function | OpenGL Function | Meaning |
---|---|---|
textdef2d | glTexImage2D | Specify a 2-D texture image. |
textbind | glTexImage2D glTexParameter gluBuild2DMipmaps |
Select a texture function. |
tevdef | glTexEnv | Define a texture-mapping environment. |
tevbind | glTexEnv | Select a texture environment. |
t2 | glTexCoord | Set the current texture coordinates. |
texgen | glTexGen | Control generation of texture coordinates. Scale an image to an arbitrary size. |
For more information on texturing, see the OpenGL Programming Guide.