PDL::Graphics::OpenGL -- a PDL interface to the OpenGL graphics library. PDL::Graphics::OpenGLOO - an Object Oriented interface to the interface.


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 generated 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 contains 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

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

glXGetTransparentIndexSUN

OO interface to the glXGetTransparentIndexSUN 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

glXGetFBConfigAttribSGIX

OO interface to the glXGetFBConfigAttribSGIX function

glXCreateGLXPixmapWithConfigSGIX

OO interface to the glXCreateGLXPixmapWithConfigSGIX function

glXCreateContextWithConfigSGIX

OO interface to the glXCreateContextWithConfigSGIX function

glXGetFBConfigFromVisualSGIX

OO interface to the glXGetFBConfigFromVisualSGIX function

glXCreateGLXPbufferSGIX

OO interface to the glXCreateGLXPbufferSGIX function

glXDestroyGLXPbufferSGIX

OO interface to the glXDestroyGLXPbufferSGIX function

glXQueryGLXPbufferSGIX

OO interface to the glXQueryGLXPbufferSGIX function

glXSelectEventSGIX

OO interface to the glXSelectEventSGIX function

glXGetSelectedEventSGIX

OO interface to the glXGetSelectedEventSGIX function

glXMakeCurrentReadSGI

OO interface to the glXMakeCurrentReadSGI 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.

 PDL::Graphics::OpenGL -- a PDL interface to the OpenGL graphics library. PDL::Graphics::OpenGLOO - an Object Oriented interface to the interface.