Porting Texture Functions

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

glTexParameter

gluBuild2DMipmaps

Specify a 2-D texture image.
textbind glTexImage2D

glTexParameter

gluBuild2DMipmaps

Select a texture function.
tevdef glTexEnv Define a texture-mapping environment.
tevbind glTexEnv

glTexImage1D

Select a texture environment.
t2 glTexCoord Set the current texture coordinates.
texgen glTexGen

glGetTexParameter

gluBuild1DMipmaps

gluBuild2DMipmaps

gluScaleImage

Control generation of texture coordinates.

Scale an image to an arbitrary size.


For more information on texturing, see the OpenGL Programming Guide.