Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions

PosixGraphicsStateGuardian Class Reference

This GSG is used only for CallbackGraphicsWindow (which might not be using the glx interfaces), to add the ability to peek in libGL.so to find the extension functions. More...

#include "posixGraphicsStateGuardian.h"

Inheritance diagram for PosixGraphicsStateGuardian:
glxGraphicsStateGuardian

List of all members.

Public Member Functions

 PosixGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe)
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Protected Member Functions

virtual void * do_get_extension_func (const char *prefix, const char *name)
 Returns the pointer to the GL extension function with the indicated name.
void * get_system_func (const char *name)
 Support for get_extension_func(), above, that uses system calls to find a GL or GLX function (in the absence of a working glxGetProcAddress() function to call).

Detailed Description

This GSG is used only for CallbackGraphicsWindow (which might not be using the glx interfaces), to add the ability to peek in libGL.so to find the extension functions.

Definition at line 29 of file posixGraphicsStateGuardian.h.


Member Function Documentation

void * PosixGraphicsStateGuardian::do_get_extension_func ( const char *  prefix,
const char *  name 
) [protected, virtual]

Returns the pointer to the GL extension function with the indicated name.

It is the responsibility of the caller to ensure that the required extension is defined in the OpenGL runtime prior to calling this; it is an error to call this for a function that is not defined.

Reimplemented in glxGraphicsStateGuardian.

Definition at line 56 of file posixGraphicsStateGuardian.cxx.

References get_system_func().

void * PosixGraphicsStateGuardian::get_system_func ( const char *  name) [protected]

Support for get_extension_func(), above, that uses system calls to find a GL or GLX function (in the absence of a working glxGetProcAddress() function to call).

Definition at line 77 of file posixGraphicsStateGuardian.cxx.

Referenced by do_get_extension_func(), and glxGraphicsStateGuardian::do_get_extension_func().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations