Appendix A. OpenGL Commands and Their IRIS GL Equivalents
Prev |  | Next

## Appendix A. OpenGL Commands and Their IRIS GL Equivalents

Table A-1 contains a list of equivalent calls that you might find useful while porting. The first column is an alphabetical list of IRIS GL calls, the second column contains the corresponding calls to use with OpenGL, and the third column contains pointers to any relevant discussion in the text.

| Note: In many cases the OpenGL commands listed will function somewhat differently from the IRIS GL commands, and the parameters may be different as well.

Be sure to refer to the OpenGL reference pages in the OpenGL Reference Manual for detailed descriptions of the functions of the these commands and the parameters they take.

You might also need to refer to X or IRIS IM documentation; some appropriate X and IRIS IM manuals are listed in “Where to Get More Information”.

Table A-1. IRIS GL Commands and Their OpenGL Equivalents

IRIS GL Call | OpenGL/glu/glX Equivalent | Where Discussed
--- | --- | ---
acbuf() | glAccum() | “Accumulation Buffer Calls”
acsize() | glXChooseVisual() | “Accumulation Buffer Calls”
addtopup() | glutCreateMenu, glutAddmenuEntry, glutAttachmenu, or use X or IRIS IM for menus | “GLX and GLUT Documentation” Chapter 4, glXIntro reference page, X documentation, IRIS IM documentation
afunction() | glAlphaFunc() | “afunction() Test Functions”
arc(), arcf() | gluPartialDisk()[a] | “Editing toogl Output: An Example” and “Porting Arcs and Circles”
backbuffer() | glDrawBuffer(GL_BACK) | `glDrawBuffer` reference page
backface() | glCullFace(GL_BACK) | `glCullFace` reference page
bbox2() | Not supported | “Porting bbox2() Calls”
bgnclosedline() | glBegin(GL_LINE_LOOP) | “Porting bgn/end Commands” and “Porting Lines”
bgncurve() | gluBeginCurve() | “NURBS Curves”
bgnline() | glBegin(GL_LINE_STRIP) | “Porting bgn/end Commands” and “Porting Lines”
bgnpoint() | glBegin(GL_POINTS) | “Porting bgn/end Commands” and “Porting Points”
bgnpolygon() | glBegin(GL_POLYGON) | “Porting bgn/end Commands”, “Porting Polygons and Quadrilaterals”, and “Porting Tessellated Polygons”
bgnqstrip() | glBegin(GL_QUAD_STRIP) | “Porting bgn/end Commands” and “Porting Polygons and Quadrilaterals”
bgnsurface() | gluBeginSurface() | “NURBS Surfaces”
bgntmesh() | glBegin( GL_TRIANGLE_STRIP) | “Porting bgn/end Commands” and “Porting Triangles”
bgntrim() | gluBeginTrim() | “Trimming Curves”
blankscreen() | Use X for windowing. | Chapter 4 and glXIntro reference page
blanktime() | Use X for windowing. | Chapter 4 and glXIntro reference page
blendcolor() | glBlendColorEXT() | “Porting RealityEngine Graphics Features”
blendfunction() | glBlendFunc() | “Blending”
blink() | Use GLUT or X for color maps. | “GLX and GLUT Documentation”, Chapter 4 and glXIntro reference page
blkqread() | Use GLUT or X for event handling. | “GLX and GLUT Documentation”, Chapter 4 and glXIntro reference page
c3*(), c4*() | glColor*() | “Porting Color, Shading, and Writemask Commands”
callfunc() | Not supported. | “Porting Display Lists”
callobj() | glCallList() | “Porting bgn/end Commands” and “Porting Display Lists”
charstr() | glCallLists() | “Fonts and Strings”
chunksize() | Not needed. | “Porting Display Lists”
circ(), circf() | gluDisk() | “Porting Arcs and Circles”
clear() | glClear(GL_COLOR_BUFFER_BIT) | “Windowing, Device, and Event Calls” and “Porting Screen and Buffer Clearing Commands”
clearhitcode() | Not supported | “Porting Picking Calls”
clipplane() | glClipPlane() | “Porting Clipping Planes”
clkon() | XChangeKeyboardControl() | See X documentation.
clkoff() | XChangeKeyboardControl() | See X documentation.
closeobj() | glEndList() | “Porting Display Lists”
cmode() | glutInitDisplayMode, glXChooseVisual() | GLX and GLUT Documentation, Chapter 4 and glXIntro and glXChooseVisual() reference pages
cmov(), cmov2() | glRasterPos3()a, glRasterPos2()a | “Porting Pixel Operations”
color(), colorf() | glIndex*() | “Porting bgn/end Commands” and “Porting Color, Shading, and Writemask Commands”
compactify() | Not needed. |
concave() | gluBeginPolygon()a |
convolve() | glConvolutionFilter2DEXT(), glSeparableFilter2DEXT(), glConvolutionParameterEXT(), glPixelTransfer() | “Porting RealityEngine Graphics Features”
cpack() | glColor*()a | “Porting bgn/end Commands” and “Porting Color, Shading, and Writemask Commands”
crv() | Not supported. | “Porting Curve and Surface Commands”
crvn() | Not supported. | “Porting Curve and Surface Commands”
curorigin() | Use X for cursors. | Chapter 4, glXIntro reference page, X documentation
cursoff() | Use X for cursors. | Chapter 4, glXIntro reference page, X documentation
curson() | Use X for cursors. | Chapter 4, glXIntro reference page, X documentation
curstype() | glutSetCursor, or use X for cursors | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
curvebasis() | glMap1() | “Porting Curve and Surface Commands”
curveit() | glEvalMesh1() | “Porting Curve and Surface Commands”
curveprecision() | Not supported. | “Porting Curve and Surface Commands”
cyclemap() | Use GLUT or use X for color maps. | “GLX and GLUT Documentation”, Chapter 4, and glXIntro reference page
czclear() | glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) | “Porting Screen and Buffer Clearing Commands”
dbtext() | Not supported | IRIS GL Dial and Button Box documentation
defbasis() | glMap1() | “Porting Curve and Surface Commands”
defcursor() | glutSetCursor, or use X for cursors | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
deflinestyle() | glLineStipple() | “Porting Lines” and “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”
defpattern() | glPolygonStipple() | “Porting Polygons and Quadrilaterals” and “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”
defpup() | Use GLUT or use X for menus. | “GLX and GLUT Documentation”, Chapter 4, glXIntro reference page, X documentation
defrasterfont() | GLUT font rendering functions, glXUseXFont()a | “GLX and GLUT Documentation”, “Fonts and Strings”
delobj() | glDeleteLists() | “Porting Display Lists”
deltag() | Not supported. | “Porting Display Lists”
depthcue() | glFog()a | “Porting Depth Cueing and Fog Commands”
dglclose() | Not needed—OpenGL is network transparent. |
dglopen() | Not needed—OpenGL is network transparent. |
displacepolygon() | glPolygonOffsetEXT() glPolygonOffset()—OpenGL 1.1 | “Porting RealityEngine Graphics Features”
dither() | glEnable(GL_DITHER) | “Porting Color, Shading, and Writemask Commands”
dopup() | Use GLUT or use X for menus. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
doublebuffer() | glXChooseVisual() | Chapter 4 and glXIntro reference page
draw() | glBegin(GL_LINES)a | “Porting Commands That Required Current Graphics Positions” and “Porting Lines”
drawmode() | glXMakeCurrent()a |
editobj() | Not supported. | “Porting Display Lists”
endclosedline() | glEnd() | “Porting bgn/end Commands” and “Porting Lines”
endcurve() | gluEndCurve() | “Porting Curve and Surface Commands”
endfeedback() | glRenderMode(GL_RENDER) | “Porting Feedback Calls”
endfullscreen() | Not supported. |
endline() | glEnd() | “Porting bgn/end Commands”
endpick() | glRenderMode(GL_RENDER) | “Porting Picking Calls”
endpoint() | glEnd() | “Porting bgn/end Commands” and “Porting Points”
endpolygon() | glEnd() | “Porting bgn/end Commands” and “Porting Polygons and Quadrilaterals”
endpupmode() | Use GLUT or use X for menus. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
endqstrip() | glEnd() | “Porting bgn/end Commands” and “Porting Polygons and Quadrilaterals”
endselect() | glRenderMode(GL_RENDER) | “Porting Picking Calls”
endsurface() | gluEndSurface() | “NURBS Surfaces”
endtmesh() | glEnd() | “Porting bgn/end Commands” and “Porting Triangles”
endtrim() | gluEndTrim() | “Trimming Curves”
fbsubtexload() | Not supported in OpenGL 1.0. Use glSubTexture*() in OpenGL 1.1. | “Porting RealityEngine Graphics Features”
feedback() | glFeedbackBuffer() | “Porting Feedback Calls”
finish() | glFinish() |
fogvertex() | glFog() | “Porting Depth Cueing and Fog Commands”
font() | See glListBase(). |
foreground() | glutSwapBuffers, glutPushWindow, glutPopWindow, or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
freepup() | Use GLUT or X for menus. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
frontbuffer() | glDrawBuffer(GL_FRONT) |
frontface() | See glCullFace(). |
fsubtexload() | glCopyTexSubImage2D()— OpenGL 1.1 |
fudge() | Use X for windowing. |
fullscrn() | glutFullScreen | See GLX and GLUT Documentation
gammaramp() | Use GLUT or X for color maps. | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
gbegin() | Use X for windowing. | Chapter 4 and glXIntro reference page
gconfig() | No equivalent (not needed). | Chapter 4 and glXIntro reference page
genobj() | glGenLists() | “Porting Display Lists”
gentag() | Not supported. |
getbackface() | glGet*() | “Porting IRIS GL get* Commands”
getbuffer() | glGet*() | “Porting IRIS GL get* Commands”
getbutton() | Use X for windowing. | “Porting IRIS GL get* Commands”, Chapter 4, and glXIntro reference page
getcmmode() | glXGetCurrentContext() | “Porting IRIS GL get* Commands”, Chapter 4 and “Porting Color, Shading, and Writemask Commands”
getcolor() | glGet*() |
getcpos() | glGet*() | “Porting IRIS GL get* Commands”
getcursor() | Not supported. | “Porting IRIS GL get* Commands”
getdcm() | glIsEnabled() | “Porting IRIS GL get* Commands” and “Porting Depth Cueing and Fog Commands”
getdepth() | glGet*() | “Porting IRIS GL get* Commands”
getdescender() | Use X for fonts. | “Fonts and Strings” and “Porting IRIS GL get* Commands”
getdev() | Not supported. | “Porting IRIS GL get* Commands”
getdisplaymode() | glGet*() | “Porting IRIS GL get* Commands”
getdrawmode() | glXGetCurrentContext() | “Porting IRIS GL get* Commands”
getfont() | Use GLUT or X for fonts. | GLX and GLUT Documentation, “Porting IRIS GL get* Commands” and “Fonts and Strings”
getgdesc() | glGet*(), glXGetConfig(), glXGetCurrentContext(), glXGetCurrentDrawable() | “Porting IRIS GL get* Commands”
getgpos() | Not supported. | “Porting Commands That Required Current Graphics Positions” and “Porting IRIS GL get* Commands”
getheight() | Use X for fonts. | GLX and GLUT Documentation, “Fonts and Strings” and “Porting IRIS GL get* Commands”
gethgram() | glGetHistogramEXT() | “Porting RealityEngine Graphics Features”
gethitcode() | Not supported. | “Porting Picking Calls” and “Porting IRIS GL get* Commands”
getlsbackup() | Not supported. | “Porting Lines” and “Porting IRIS GL get* Commands”
getlsrepeat() | glGet*() | “Porting IRIS GL get* Commands” and “Porting Lines”
getlstyle() | glGet*() | “Porting IRIS GL get* Commands” and “Porting Lines”
getlwidth() | glGet*() | “Porting IRIS GL get* Commands” and “Porting Lines”
getmap(void) | Not supported. | “Porting IRIS GL get* Commands”, Chapter 4 and “Porting Color, Shading, and Writemask Commands”
getmatrix() | glGet*(GL_MODELVIEW_ MATRIX), glGet*(GL_PROJECTION_ MATRIX) | “Porting IRIS GL get* Commands” and “Porting Matrix and Transformation Calls”
getmcolor() | Not supported. | “Porting IRIS GL get* Commands”, “Porting Color, Shading, and Writemask Commands”, Chapter 4 and glXIntro reference page
getminmax() | glGetMinmaxEXT() | “Porting RealityEngine Graphics Features”
getmmode() | glGet*(GL_MATRIX_MODE) | “Porting get* Calls for Matrices and Transformations”.
getmonitor() | Not supported. | “Porting IRIS GL get* Commands”
getnurbsproperty() | gluGetNurbsProperty() | “Porting IRIS GL get* Commands”
getopenobj() | Not supported. | “Porting Display Lists” and “Porting IRIS GL get* Commands”
getorigin() | Use X for windowing. | “Porting IRIS GL get* Commands” and Chapter 4 and glXIntro reference page
getpattern() | glGetPolygonStipple() | “Porting IRIS GL get* Commands” and “Porting Polygons and Quadrilaterals”
getplanes() | glGet*(GL_RED_BITS), glGet*(GL_GREEN_BITS), glGet*(GL_BLUE_BITS) | “Porting IRIS GL get* Commands”
getport() | Use X for windowing. | “Porting IRIS GL get* Commands”, Chapter 4, and glXIntro reference page
getresetls() | Not supported. | “Porting Lines” and “Porting IRIS GL get* Commands”
getscrbox() | Not supported. | “Porting IRIS GL get* Commands” and “Porting Viewports, Screenmasks, and Scrboxes”
getscrmask() | glGet*(GL_SCISSOR_BOX) | “Porting IRIS GL get* Commands” and “Porting Viewports, Screenmasks, and Scrboxes”
getshade() | glGet*( GL_CURRENT_INDEX) | “Porting IRIS GL get* Commands”
getsize() | Use X for windowing. | “Porting IRIS GL get* Commands”, Chapter 4, and glXIntro reference page
getsm() | glGet*(GL_SHADE_MODEL) | “Porting IRIS GL get* Commands” and “Porting Color, Shading, and Writemask Commands”
getvaluator() | Use glutMainLoop() or use X for event handling. | GLX and GLUT Documentation, “Porting IRIS GL get* Commands”, Chapter 4, and glXIntro reference page
getvideo() | Not supported. | “Porting IRIS GL get* Commands”
getviewport() | glGet*(GL_VIEWPORT) | “Porting IRIS GL get* Commands” and “Porting Viewports, Screenmasks, and Scrboxes”
getwritemask() | glGet*( GL_INDEX_WRITEMASK) | “Porting IRIS GL get* Commands” and “Porting Color, Shading, and Writemask Commands”
getwscrn() | Use X for windowing. | “Porting IRIS GL get* Commands”, Chapter 4 and glXIntro reference page
getzbuffer() | glIsEnabled( GL_DEPTH_TEST) | “Porting IRIS GL get* Commands”
gexit() | Use X for windowing. |
gflush() | glFlush() |
ginit() | Use GLUT or use X for windowing. | GLX and GLUT Documentation, Chapter 4, and glXIntro reference page
glcompat() | Not supported. |
GLXgetconfig() | glXChooseVisual(), glXGetConfig() | Chapter 4 and glXIntro reference page
GLXlink() | Combination of glXCreateContext() and glXMakeCurrent() | Chapter 4 and glXIntro reference page
GLXunlink() | glXMakeCurrent(display_name, None, NULL) | Chapter 4 and glXIntro reference page
GLXwinset() | glXMakeCurrent() has some of the functionality. | Chapter 4 and glXIntro reference page
greset() | Not supported. | “Porting greset()”
gRGBcolor() | glGet*(GL_CURRENT_ RASTER_COLOR) | “Porting Color, Shading, and Writemask Commands”
gRGBcursor() | Use GLUT or use X for cursors. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
gRGBmask() | glGet*( GL_COLOR_WRITEMASK) | “Porting Color, Shading, and Writemask Commands”
gselect() | glSelectBuffer() |
gsync() | Use GLUt or use X for windowing. | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
gversion() | glGetString( GL_RENDERER)a | Chapter 4 and glXIntro reference page
hgram() | glHistogramEXT(), glResetHistogramEXT() | “Porting RealityEngine Graphics Features”
iconsize() | glutIconifyWindow, or use X | GLX and GLUT Documentation or X documentation for XIconSize()
icontitle() | glutSetIconTitle, or use X | GLX and GLUT Documentation or X documentation for XSetIconName()
ilbuffer() | Not supported. | “Porting RealityEngine Graphics Features”
ildraw() | Not supported. | “Porting RealityEngine Graphics Features”
imakebackground() | Use X for event handling. | Chapter 4 and glXIntro reference page
initnames() | glInitNames() |
ismex() | Not supported. |
isobj() | glIsList() | “Porting Display Lists”
isqueued() | Use X for event handling. | Chapter 4 and glXIntro reference page
istag() | Not supported. | “Stencil Plane Calls”
istexloaded() | glAreTexturesResident() — OpenGL 1.1 | “Porting RealityEngine Graphics Features”
keepaspect() | Use X for windowing. | Chapter 4 and glXIntro reference page
lampoff() | Not supported. | See X documentation for XChangeKeyboardControl().
lampon() | Not supported. | See X documentation for XChangeKeyboardControl().
leftbuffer() | glDrawBuffer(GL_LEFT) | “Porting RealityEngine Graphics Features”
linesmooth() | glEnable( GL_LINE_SMOOTH) | “Porting Lines” and “Antialiasing Calls”
linewidth() linewidthf*() | glLineWidth() | “Porting Lines”
lmbind() | glEnable(GL_LIGHTING) glEnable(GL_LIGHTi) | “Porting bgn/end Commands”, “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”, and “Porting Lighting and Materials Calls”
lmcolor() | glColorMaterial() | “Porting Lighting and Materials Calls”
lmdef() | glMaterial() glLight() glLightModel() | “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions” and “Porting Lighting and Materials Calls”
loadmatrix() | glLoadMatrix() | “Porting Matrix and Transformation Calls”
loadname() | glLoadName() | “Porting Picking Calls”
logicop() | glLogicOp() | “Porting Pixel Operations”
lookat() | gluLookAt()a | “Porting Matrix and Transformation Calls”
lrectread() | glReadPixels() | “Porting Pixel Operations”
lrectwrite() | glDrawPixels() | “Porting Pixel Operations”
lRGBrange() | Not supported; see glFog(). | “Porting Depth Cueing and Fog Commands”
lsbackup() | Not supported. | “Porting Lines”
lsetdepth() | glDepthRange() | “Porting Depth Cueing and Fog Commands”
lshaderange() | Not supported; see glFog(). | “Porting Depth Cueing and Fog Commands”
lsrepeat() | glLineStipple() | “Porting Lines”
makeobj() | glNewList() | “Porting Display Lists”
maketag() | Not supported. | “Stencil Plane Calls”
mapcolor() | XStoreColor() | Chapter 4
mapw() | gluProject() | “Porting Matrix and Transformation Calls”
maxsize() | Use GLUT or use X for windowing. | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
minmax() | glMinmaxEXT() | “Porting RealityEngine Graphics Features”
minsize() | Use GLUT or use X for windowing. | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
mmode() | glMatrixMode() | “Porting Matrix and Transformation Calls”
monobuffer() | Superseded by selection of an appropriate GLX visual. | glXChooseVisual() reference page and “Porting RealityEngine Graphics Features”
move() | Not supported. | “Porting Commands That Required Current Graphics Positions”
msalpha() | glEnable(GL_SAMPLE_ALPHA_T O_MASK_SGIS), glEnable(GL_SAMPLE_ALPHA_T O_ONE_SGIS) | “Porting RealityEngine Graphics Features”
msmask() | glSampleMaskSGIS() | “Porting RealityEngine Graphics Features”
mspattern() | glSamplePatternSGIS() | “Porting RealityEngine Graphics Features”
mssize() | glXChooseVisual with attribute GLX_SAMPLE_BUFFERS_SGIS | “Porting RealityEngine Graphics Features”
mswapbuffers() | glutSwapBuffers, glxSwapbuffers | GLX and GLUT Documentation or X documentation
multimap() | Use X for color maps. | “Porting Color, Shading, and Writemask Commands”, also Chapter 4, glXIntro reference page
multisample() | glEnable( GL_MULTISAMPLE_SGIS) | “Porting RealityEngine Graphics Features”
multmatrix() | glMultMatrix() |
n3f() | glNormal3fv() | “Porting bgn/end Commands”
newpup() | Use GLUT or X for menus. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
newtag() | Not supported. | “Porting Display Lists”
nmode() | glEnable(GL_NORMALIZE) |
noborder() | Use X for windowing. | Chapter 4 and glXIntro reference page
noise() | Use X for event handling. | Chapter 4 and glXIntro reference page
noport() | Use X for windowing. | Chapter 4 and glXIntro reference page
normal() | glNormal3fv() |
nurbscurve() | gluNurbsCurve()a | “NURBS Curves” and “Trimming Curves”
nurbssurface() | gluNurbsSurface()a | “NURBS Surfaces”
objdelete() | Not supported. | “Stencil Plane Calls”
objinsert() | Not supported. | “Stencil Plane Calls”
objreplace() | Not supported. | “Porting Display Lists”
onemap() | Use GLUT or X for color maps. | “GLX and GLUT Documentation”, “Porting Color, Shading, and Writemask Commands”, and Chapter 4 and glXIntro reference page
ortho() | glOrtho() | “Porting Matrix and Transformation Calls”
ortho2() | gluOrtho2D() | “Porting Matrix and Transformation Calls”
overlay() | Use GLUT overlay functions or use X. | “GLX and GLUT Documentation”, Chapter 4, glXIntro reference pages, and glXChooseVisual()
pagecolor() | Not supported. |
passthrough() | glPassThrough() | “Porting Feedback Calls”
patch() | glEvalMesh2()a | “Porting Curve and Surface Commands”
patchbasis() | glMap2()a | “Porting Curve and Surface Commands”
patchcurves() | glMap2()a | “Porting Curve and Surface Commands”
patchprecision() | Not supported. | “Porting Curve and Surface Commands”
pclos() | Not supported; see glEnd(). | “Porting Commands That Required Current Graphics Positions” and “Porting Polygons and Quadrilaterals”
pdr() | Not supported; see glVertex(). | “Porting Commands That Required Current Graphics Positions” and “Porting Polygons and Quadrilaterals”
perspective() | gluPerspective() | “Porting Matrix and Transformation Calls”
pick() | gluPickMatrix()a and glRenderMode(GL_SELECT) | “Porting Picking Calls”
picksize() | gluPickMatrix() | “Porting Matrix and Transformation Calls” and “Porting Picking Calls”
pixelmap() | glPixelMap() | “Porting RealityEngine Graphics Features”
pixeltransfer() | glPixelTransfer() | “Porting RealityEngine Graphics Features”
pixmode() | glPixelTransfer() and glPixelStore() | “Porting Pixel Operations”
pmv() | Not supported; see glBegin() and glVertex(). | “Porting Commands That Required Current Graphics Positions” and “Porting Polygons and Quadrilaterals”
pnt*() | glBegin(GL_POINTS)a | “Porting Points”
pntsize(), pntsizef() | glPointSize() | “Porting Points”
pntsmooth() | glEnable( GL_POINT_SMOOTH) | “Porting Points” and “Antialiasing Calls”
polarview() | Not supported; see glRotate() and glTranslate(). | “Porting Matrix and Transformation Calls”
polf() | Not supported. | “Porting Polygons and Quadrilaterals”
poly() | Not supported. | “Porting Polygons and Quadrilaterals”
polymode() | glPolygonMode() | “Porting Polygons and Quadrilaterals”
polysmooth() | glEnable( GL_POLYGON_SMOOTH) | “Antialiasing Calls”
popattributes() | glPopAttrib(), glPopClientAttrib() | “Porting greset()” explains how to use glPopAttrib()
popmatrix() | glPopMatrix() | “Porting Matrix and Transformation Calls”
popname() | glPopName() | “Porting Picking Calls”
popviewport() | glPopAttrib() | “Porting Viewports, Screenmasks, and Scrboxes”
prefposition() | Use X for windowing. | Chapter 4 and glXIntro reference page
prefsize() | Use X for windowing. | Chapter 4 and glXIntro reference page
pupmode() | Use X for windowing. | Chapter 4 and glXIntro reference page
pushattributes() | glPushAttrib(), glPushClientAttrib() |
pushmatrix() | glPushMatrix() | “Porting Matrix and Transformation Calls”
pushname() | glPushName() | “Porting Picking Calls”
pushviewport() | glPushAttrib(GL_VIEWPORT) | “Porting Viewports, Screenmasks, and Scrboxes”
pwlcurve() | gluPWLCurve() | “Trimming Curves”
qcontrol() | Use X for event handling. | Chapter 4 and glXIntro reference page
qdevice() | Use X for event handling. | Chapter 4 and glXIntro reference page
qenter() | Use X for event handling. | Chapter 4 and glXIntro reference page
qgetfd() | Use X for event handling. | Chapter 4 and glXIntro reference page
qread() | Use X for event handling. | Chapter 4 and glXIntro reference page
qreset() | Use X for event handling. | Chapter 4 and glXIntro reference page
qtest() | Use X for event handling. | Chapter 4 and glXIntro reference page
rcrv(), rcrvn() | Not supported. | “Porting Curve and Surface Commands”
rdr() | Not supported. | “Porting Commands That Required Current Graphics Positions”
readcomponent() | glReadPixels() gives partial support; some readcomponent() features aren't supported. | “Porting RealityEngine Graphics Features”
readdisplay() | Not supported. |
readpixels() | glReadPixels() | “Porting Pixel Operations”
readRGB() | Not supported. | “Porting Pixel Operations”
readsource() | glReadBuffer() | “Porting Pixel Operations”
rect(), rectf() | See glRect() and glPolygonMode(). | “Porting Polygons and Quadrilaterals”
rectcopy() | glCopyPixels() | “Porting Pixel Operations”
rectread() | glReadPixels() | “Porting Pixel Operations”
rectwrite() | glDrawPixels() | “Porting Pixel Operations”
rectzoom() | glPixelZoom() | “Porting Pixel Operations”
resetls() | Not supported. | “Porting Lines”
reshapeviewport() | Not supported. | Chapter 4 and glXIntro reference page
RGBcolor() | glColor() | “Porting bgn/end Commands” and “Porting Color, Shading, and Writemask Commands”
RGBcursor() | Use glutSetCursor or use X for cursors. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
RGBmode() | Use X for windowing. | Chapter 4 and glXIntro reference page
RGBrange() | Not supported. |
RGBsize() | Not supported, but the glXChooseVisual() function does some similar things. | glXChooseVisual() reference page
RGBwritemask() | glColorMask() | “Porting Color, Shading, and Writemask Commands”
rightbuffer() | glDrawBuffer(GL_RIGHT) | “Porting RealityEngine Graphics Features”
ringbell() | Not supported. | X documentation for XBell()
rmv() | Not supported. | “Porting Commands That Required Current Graphics Positions”
rot() | glRotate() | “Porting Matrix and Transformation Calls”
rotate() | glRotate() | “Porting Matrix and Transformation Calls”
rpatch() | Not supported. | “Porting Curve and Surface Commands”
rpdr() | Not supported. | “Porting Commands That Required Current Graphics Positions” and “Porting Polygons and Quadrilaterals”
rpmv() | Not supported. | “Porting Commands That Required Current Graphics Positions” and “Porting Polygons and Quadrilaterals”
sbox(), sboxf() | glRect()a | “Porting Polygons and Quadrilaterals”
scale() | glScale() | “Porting Matrix and Transformation Calls”
sclear() | glClear( GL_STENCIL_BUFFER_BIT) | “Porting Screen and Buffer Clearing Commands” and “Stencil Plane Calls”
scrbox() | Not supported. | “Porting Viewports, Screenmasks, and Scrboxes”
screenspace() | Not supported. | “Porting Matrix and Transformation Calls”
scrmask() | glScissor() | “Porting Viewports, Screenmasks, and Scrboxes”
scrnattach() | Use X for windowing. | Chapter 4 and glXIntro reference page
scrnselect() | Use X for windowing. | Chapter 4 and glXIntro reference page
scrsubdivide() | Not supported. |
select() | glRenderMode() | “Porting Picking Calls”
setbell() | Not supported. | X documentation for XChangeKeyboardControl()
setcursor() | glutSetCursor, or use X for cursors | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, and X documentation
setdblights() | Not supported. | dial and button box documentation
setdepth() | glDepthRange()a |
setlinestyle() | glLineStipple() | “Porting Lines” and “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”
setmap() | Use GLUT or X for color maps. | GLX and GLUT Documentation, “Porting Color, Shading, and Writemask Commands”, Chapter 4, and glXIntro reference page
setmonitor() | Not supported. |
setnurbsproperty() | gluNurbsProperty() |
setpattern() | glPolygonStipple() | “Porting Polygons and Quadrilaterals” and “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”
setpup() | Use GLUT or X for menus. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
setvaluator() | Use GLUT or X for devices. | GLX and GLUT Documentation, Chapter 4, glXIntro reference page, X documentation
setvideo() | Not supported. |
shademodel() | glShadeModel() | “Porting Color, Shading, and Writemask Commands”
shaderange() | glFog() |
singlebuffer() | Use X for windowing. | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
smoothline() | glEnable( GL_LINE_SMOOTH) | “Porting Lines”
spclos() | Not supported. | “Porting Polygons and Quadrilaterals”
splf() | Not supported see glBegin(). | “Porting Polygons and Quadrilaterals”
stencil() | glStencilFunc(), glStencilOp() | “Stencil Plane Calls”
stensize() | glStencilMask() | “Stencil Plane Calls”
stepunit() | Use X for windowing. | Chapter 4 and glXIntro reference page
stereobuffer() | Superseded by selection of an appropriate GLX visual. | glXChooseVisual() reference page and “Porting RealityEngine Graphics Features”
strwidth() | Use X for fonts and strings. | “Fonts and Strings”
subpixel() | Not needed. | “Porting Antialiasing Calls”
subtexload() | glTexSubImage2DEXT()—OpenGL 1.0 glTexSubImage2D()—OpenGL 1.1 | “Porting RealityEngine Graphics Features”
swapbuffers() | glXSwapBuffers() | glXIntro and glXSwapBuffers() reference pages
swapinterval() | Not supported. |
swaptmesh() | Not supported; see glBegin(GL_TRIANGLE_FAN) | “Porting Triangles”
swinopen() | Use X for windowing | Chapter 4 and glXIntro reference page
swritemask() | glStencilMask() | “Stencil Plane Calls”
t2*(), t3*(), t4*() | glTexCoord*() | “Porting Texture Calls”
tevbind() | glTexEnv() | “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions” and “Porting Lighting and Materials Calls”
tevdef() | glTexEnv() | “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”, “Porting Lighting and Materials Calls”, and “Translating tevdef()”
texbind() | glTexImage2D(), glTexParameter(), gluBuild2DMipmaps(), | “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions” and “Porting Texture Calls”
texdef2d() | glTexImage2D(), glTexParameter(), gluBuild2DMipmaps() | “Porting defs, binds, and sets: Replacing `Tables' of Stored Definitions”, “Porting Lighting and Materials Calls”, and “Translating texdef()”
texdef3d() | glTexImage3DEXT() | “Porting RealityEngine Graphics Features”
texgen() | glTexGen() | “Porting Lighting and Materials Calls” and “Translating texgen()”
textcolor() | Not supported. |
textinit() | Not supported. |
textport() | Not supported. |
tie() | Use X for event handling. | Chapter 4 and glXIntro reference page
tlutbind() | Not supported. | “Porting RealityEngine Graphics Features”
tlutdef() | Not supported. | “Porting RealityEngine Graphics Features”
tpoff() | Not supported. |
tpon() | Not supported. |
translate() | glTranslate() | “Porting Matrix and Transformation Calls”
underlay() | glXChooseVisual() |
unqdevice() | Use X for event handling. | Chapter 4 and glXIntro reference page
v2*(), v3*(), v4*() | glVertex*() | “Porting v() Commands”
videocmd() | Not supported. |
viewport() | glViewport() | “Porting Viewports, Screenmasks, and Scrboxes”
winattach() | Use GLUT or X for windowing. | GLX and GLUT Documentation, Chapter 4, and glXIntro reference page
winclose() | glXDestroyContext(), XCloseDisplay() |
winconstraints() | Use X for windowing. | Chapter 4 and glXIntro reference page
windepth() | Use X for windowing. | Chapter 4 and glXIntro reference page
window() | glFrustum() | “Porting Matrix and Transformation Calls”
winget() | glXGetCurrentContext() |
winmove() | glutPositionWindow(), or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
winopen() | glutShowWindow(), or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
winpop() | glutPopWindow, or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
winposition() | glutPositionWindow, or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
winpush() | glutPushWindow, or use X for windowing | GLX and GLUT Documentation, Chapter 4 and glXIntro reference page
winset() | Use GLUT or use X for windowing. | GLX and GLUT Documentation, Chapter 4 and glXIntro and glXMakeCurrent() reference pages
wintitle() | glutSetWindowTitle, or use X for windowing | GLX and GLUT Documentation Chapter 4 and glXIntro reference page
wmpack() | glColorMask() | Chapter 4
writemask() | glIndexMask() |
writepixels() | glDrawPixels() |
writeRGB() | glDrawPixels() |
xfpt*() | Not supported. | “Porting Picking Calls”; “Porting Feedback Calls”
zbsize() | Superseded by selection of an appropriate GLX visual. | glXChooseVisual() reference page and “Porting RealityEngine Graphics Features”
zbuffer() | glEnable(GL_DEPTH_TEST) |
zclear() | glClear( GL_DEPTH_BUFFER_BIT) | “Porting Screen and Buffer Clearing Commands”
zdraw() | Not supported. |
zfunction() | glDepthFunc() |
zsource() | Not supported. |
zwritemask() | glDepthMask() | “Porting Color, Shading, and Writemask Commands”
[a] Note that this is not a direct equivalent of IRIS GL functionality—be careful when porting.

Prev | Table of Contents | Next
Chapter 4. OpenGL in the X Window System |  | Appendix B. Differences Between OpenGL and IRIS GL