OpenGL(L) User Contributed Perl Documentation OpenGL(L) NAME PDL::Graphics::OpenGL -- a PDL interface to the OpenGL graphics library. PDL::Graphics::OpenGLOO - an Object Oriented interface to the interface. DESCRIPTION This package implements an interface to various OpenGL or OpenGL emulator libraries. Most of the interface is gen- erated at PDL compile time by the script opengl.pd which runs the c preprocessor on various OpenGL include files to determine the correct C prototypes for each configuration. The object oriented interface defines an Object which con- tains the Display, Window and Context properties of the defined OpenGL device. Any OpenGL function called from the OO interface will recieve these fields from the object, they should not be passed explicitly. This package is primarily intended for internal use by the PDL::Graphics::TriD package, but should also be usable in its own right. FUNCTIONS new($class,$options) Returns a new OpenGL object with attributes specified in the options field. These attributes are: x,y - the position of the upper left corner of the window (0,0) width,height - the width and height of the window in pixels (500,500) parent - the parent under which the new window should be opened (root) mask - the user interface mask (StructureNotifyMask) attributes - attributes to pass to glXChooseVisual default_options default options for object oriented methods XPending() OO interface to XPending XResizeWindow(x,y) OO interface to XResizeWindow glpXNextEvent() OO interface to glpXNextEvent glpRasterFont() OO interface to the glpRasterFont function AUTOLOAD If the function is not prototyped in OO we assume there is no explicit mention of the three identifying parameters (Display, Window, Context) and try to load the OpenGL function. glXCopyContext OO interface to the glXCopyContext function glXCreateContext OO interface to the glXCreateContext function glXCreateGLXPixmap OO interface to the glXCreateGLXPixmap function glXDestroyContext OO interface to the glXDestroyContext function glXDestroyGLXPixmap OO interface to the glXDestroyGLXPixmap function glXGetConfig OO interface to the glXGetConfig function glXIsDirect OO interface to the glXIsDirect function glXMakeCurrent OO interface to the glXMakeCurrent function glXQueryExtension OO interface to the glXQueryExtension function glXQueryVersion OO interface to the glXQueryVersion function glXSwapBuffers OO interface to the glXSwapBuffers function glXGetFBConfigAttrib OO interface to the glXGetFBConfigAttrib function glXCreateWindow OO interface to the glXCreateWindow function glXDestroyWindow OO interface to the glXDestroyWindow function glXCreatePixmap OO interface to the glXCreatePixmap function glXDestroyPixmap OO interface to the glXDestroyPixmap function glXCreatePbuffer OO interface to the glXCreatePbuffer function glXDestroyPbuffer OO interface to the glXDestroyPbuffer function glXQueryDrawable OO interface to the glXQueryDrawable function glXCreateNewContext OO interface to the glXCreateNewContext function glXMakeContextCurrent OO interface to the glXMakeContextCurrent function glXQueryContext OO interface to the glXQueryContext function glXSelectEvent OO interface to the glXSelectEvent function glXGetSelectedEvent OO interface to the glXGetSelectedEvent function glXGetContextIDEXT OO interface to the glXGetContextIDEXT function glXImportContextEXT OO interface to the glXImportContextEXT function glXFreeContextEXT OO interface to the glXFreeContextEXT function glXQueryContextInfoEXT OO interface to the glXQueryContextInfoEXT function OpenGL Interface Functions The following is a list of OpenGL functions for which an interface was created. Please refer to the OpenGL documentation for descriptions. o glClearIndex o glClearColor o glClear o glIndexMask o glColorMask o glAlphaFunc o glBlendFunc o glLogicOp o glCullFace o glFrontFace o glPointSize o glLineWidth o glLineStipple o glPolygonMode o glPolygonOffset o glPolygonStipple o glGetPolygonStipple o glEdgeFlag o glEdgeFlagv o glScissor o glClipPlane o glGetClipPlane o glDrawBuffer o glReadBuffer o glEnable o glDisable o glIsEnabled o glEnableClientState o glDisableClientState o glGetBooleanv o glGetDoublev o glGetFloatv o glGetIntegerv o glPushAttrib o glPopAttrib o glPushClientAttrib o glPopClientAttrib o glRenderMode o glGetError o glFinish o glFlush o glHint o glClearDepth o glDepthFunc o glDepthMask o glDepthRange o glClearAccum o glAccum o glMatrixMode o glOrtho o glFrustum o glViewport o glPushMatrix o glPopMatrix o glLoadIdentity o glLoadMatrixd o glLoadMatrixf o glMultMatrixd o glMultMatrixf o glRotated o glRotatef o glScaled o glScalef o glTranslated o glTranslatef o glIsList o glDeleteLists o glGenLists o glNewList o glEndList o glCallList o glCallLists o glListBase o glBegin o glEnd o glVertex2d o glVertex2f o glVertex2i o glVertex2s o glVertex3d o glVertex3f o glVertex3i o glVertex3s o glVertex4d o glVertex4f o glVertex4i o glVertex4s o glVertex2dv o glVertex2fv o glVertex2iv o glVertex2sv o glVertex3dv o glVertex3fv o glVertex3iv o glVertex3sv o glVertex4dv o glVertex4fv o glVertex4iv o glVertex4sv o glNormal3b o glNormal3d o glNormal3f o glNormal3i o glNormal3s o glNormal3bv o glNormal3dv o glNormal3fv o glNormal3iv o glNormal3sv o glIndexd o glIndexf o glIndexi o glIndexs o glIndexub o glIndexdv o glIndexfv o glIndexiv o glIndexsv o glIndexubv o glColor3b o glColor3d o glColor3f o glColor3i o glColor3s o glColor3ub o glColor3ui o glColor3us o glColor4b o glColor4d o glColor4f o glColor4i o glColor4s o glColor4ub o glColor4ui o glColor4us o glColor3bv o glColor3dv o glColor3fv o glColor3iv o glColor3sv o glColor3ubv o glColor3uiv o glColor3usv o glColor4bv o glColor4dv o glColor4fv o glColor4iv o glColor4sv o glColor4ubv o glColor4uiv o glColor4usv o glTexCoord1d o glTexCoord1f o glTexCoord1i o glTexCoord1s o glTexCoord2d o glTexCoord2f o glTexCoord2i o glTexCoord2s o glTexCoord3d o glTexCoord3f o glTexCoord3i o glTexCoord3s o glTexCoord4d o glTexCoord4f o glTexCoord4i o glTexCoord4s o glTexCoord1dv o glTexCoord1fv o glTexCoord1iv o glTexCoord1sv o glTexCoord2dv o glTexCoord2fv o glTexCoord2iv o glTexCoord2sv o glTexCoord3dv o glTexCoord3fv o glTexCoord3iv o glTexCoord3sv o glTexCoord4dv o glTexCoord4fv o glTexCoord4iv o glTexCoord4sv o glRasterPos2d o glRasterPos2f o glRasterPos2i o glRasterPos2s o glRasterPos3d o glRasterPos3f o glRasterPos3i o glRasterPos3s o glRasterPos4d o glRasterPos4f o glRasterPos4i o glRasterPos4s o glRasterPos2dv o glRasterPos2fv o glRasterPos2iv o glRasterPos2sv o glRasterPos3dv o glRasterPos3fv o glRasterPos3iv o glRasterPos3sv o glRasterPos4dv o glRasterPos4fv o glRasterPos4iv o glRasterPos4sv o glRectd o glRectf o glRecti o glRects o glRectdv o glRectfv o glRectiv o glRectsv o glVertexPointer o glNormalPointer o glColorPointer o glIndexPointer o glTexCoordPointer o glEdgeFlagPointer o glGetPointerv o glArrayElement o glDrawArrays o glDrawElements o glInterleavedArrays o glShadeModel o glLightf o glLighti o glLightfv o glLightiv o glGetLightfv o glGetLightiv o glLightModelf o glLightModeli o glLightModelfv o glLightModeliv o glMaterialf o glMateriali o glMaterialfv o glMaterialiv o glGetMaterialfv o glGetMaterialiv o glColorMaterial o glPixelZoom o glPixelStoref o glPixelStorei o glPixelTransferf o glPixelTransferi o glPixelMapfv o glPixelMapuiv o glPixelMapusv o glGetPixelMapfv o glGetPixelMapuiv o glGetPixelMapusv o glBitmap o glReadPixels o glDrawPixels o glCopyPixels o glStencilFunc o glStencilMask o glStencilOp o glClearStencil o glTexGend o glTexGenf o glTexGeni o glTexGendv o glTexGenfv o glTexGeniv o glGetTexGendv o glGetTexGenfv o glGetTexGeniv o glTexEnvf o glTexEnvi o glTexEnvfv o glTexEnviv o glGetTexEnvfv o glGetTexEnviv o glTexParameterf o glTexParameteri o glTexParameterfv o glTexParameteriv o glGetTexParameterfv o glGetTexParameteriv o glGetTexLevelParameterfv o glGetTexLevelParameteriv o glTexImage1D o glTexImage2D o glGetTexImage o glGenTextures o glDeleteTextures o glBindTexture o glPrioritizeTextures o glAreTexturesResident o glIsTexture o glTexSubImage1D o glTexSubImage2D o glCopyTexImage1D o glCopyTexImage2D o glCopyTexSubImage1D o glCopyTexSubImage2D o glMap1d o glMap1f o glMap2d o glMap2f o glGetMapdv o glGetMapfv o glGetMapiv o glEvalCoord1d o glEvalCoord1f o glEvalCoord1dv o glEvalCoord1fv o glEvalCoord2d o glEvalCoord2f o glEvalCoord2dv o glEvalCoord2fv o glMapGrid1d o glMapGrid1f o glMapGrid2d o glMapGrid2f o glEvalPoint1 o glEvalPoint2 o glEvalMesh1 o glEvalMesh2 o glFogf o glFogi o glFogfv o glFogiv o glFeedbackBuffer o glPassThrough o glSelectBuffer o glInitNames o glLoadName o glPushName o glPopName o glDrawRangeElements o glTexImage3D o glTexSubImage3D o glCopyTexSubImage3D o glColorTable o glColorSubTable o glColorTableParameteriv o glColorTableParameterfv o glCopyColorSubTable o glCopyColorTable o glGetColorTable o glGetColorTableParameterfv o glGetColorTableParameteriv o glBlendEquation o glBlendColor o glHistogram o glResetHistogram o glGetHistogram o glGetHistogramParameterfv o glGetHistogramParameteriv o glMinmax o glResetMinmax o glGetMinmax o glGetMinmaxParameterfv o glGetMinmaxParameteriv o glConvolutionFilter1D o glConvolutionFilter2D o glConvolutionParameterf o glConvolutionParameterfv o glConvolutionParameteri o glConvolutionParameteriv o glCopyConvolutionFilter1D o glCopyConvolutionFilter2D o glGetConvolutionFilter o glGetConvolutionParameterfv o glGetConvolutionParameteriv o glSeparableFilter2D o glGetSeparableFilter o glActiveTextureARB o glClientActiveTextureARB o glMultiTexCoord1dARB o glMultiTexCoord1dvARB o glMultiTexCoord1fARB o glMultiTexCoord1fvARB o glMultiTexCoord1iARB o glMultiTexCoord1ivARB o glMultiTexCoord1sARB o glMultiTexCoord1svARB o glMultiTexCoord2dARB o glMultiTexCoord2dvARB o glMultiTexCoord2fARB o glMultiTexCoord2fvARB o glMultiTexCoord2iARB o glMultiTexCoord2ivARB o glMultiTexCoord2sARB o glMultiTexCoord2svARB o glMultiTexCoord3dARB o glMultiTexCoord3dvARB o glMultiTexCoord3fARB o glMultiTexCoord3fvARB o glMultiTexCoord3iARB o glMultiTexCoord3ivARB o glMultiTexCoord3sARB o glMultiTexCoord3svARB o glMultiTexCoord4dARB o glMultiTexCoord4dvARB o glMultiTexCoord4fARB o glMultiTexCoord4fvARB o glMultiTexCoord4iARB o glMultiTexCoord4ivARB o glMultiTexCoord4sARB o glMultiTexCoord4svARB o glXCopyContext o glXCreateContext o glXCreateGLXPixmap o glXDestroyContext o glXDestroyGLXPixmap o glXGetConfig o glXGetCurrentContext o glXGetCurrentDrawable o glXIsDirect o glXMakeCurrent o glXQueryExtension o glXQueryVersion o glXSwapBuffers o glXUseXFont o glXWaitGL o glXWaitX o glXGetFBConfigAttrib o glXCreateWindow o glXDestroyWindow o glXCreatePixmap o glXDestroyPixmap o glXCreatePbuffer o glXDestroyPbuffer o glXQueryDrawable o glXCreateNewContext o glXMakeContextCurrent o glXGetCurrentReadDrawable o glXQueryContext o glXSelectEvent o glXGetSelectedEvent o glXGetContextIDEXT o glXGetCurrentDrawableEXT o glXImportContextEXT o glXFreeContextEXT o glXQueryContextInfoEXT o gluBeginCurve o gluBeginPolygon o gluBeginSurface o gluBeginTrim o gluBuild1DMipmapLevels o gluBuild1DMipmaps o gluBuild2DMipmapLevels o gluBuild2DMipmaps o gluBuild3DMipmapLevels o gluBuild3DMipmaps o gluCheckExtension o gluCylinder o gluDeleteNurbsRenderer o gluDeleteQuadric o gluDeleteTess o gluDisk o gluEndCurve o gluEndPolygon o gluEndSurface o gluEndTrim o gluGetNurbsProperty o gluGetTessProperty o gluLoadSamplingMatrices o gluLookAt o gluNextContour o gluNurbsCallback o gluNurbsCallbackData o gluNurbsCallbackDataEXT o gluNurbsCurve o gluNurbsProperty o gluNurbsSurface o gluOrtho2D o gluPartialDisk o gluPerspective o gluPickMatrix o gluProject o gluPwlCurve o gluQuadricCallback o gluQuadricDrawStyle o gluQuadricNormals o gluQuadricOrientation o gluQuadricTexture o gluScaleImage o gluSphere o gluTessBeginContour o gluTessBeginPolygon o gluTessCallback o gluTessEndContour o gluTessEndPolygon o gluTessNormal o gluTessProperty o gluTessVertex o gluUnProject o gluUnProject4 perl v5.6.1 2002-04-08 OpenGL(L)