OpenGL.GLU.quadrics
Wrapper/Implementation of the GLU quadrics object for PyOpenGL
Functions
gluNewQuadric(
)
-> <class 'OpenGL.GLU.quadrics.LP_GLUQuadric'>
gluNewQuadric( ) -> GLUQuadric
Create a new GLUQuadric object
gluQuadricCallback(
quadric
,
which
= GLU_ERROR
,
function
= None
)
Set the GLU error callback function
Classes
class GLUQuadric(
GLUquadric
):
Implementation class for GLUQuadric classes in PyOpenGL
addCallback(
self
,
which
,
function
)
Register a callback for the quadric object
At the moment only GLU_ERROR is supported by OpenGL, but
we allow for the possibility of more callbacks in the future...
FUNCTION_TYPE(
restype
,
*
argtypes
,
**
kw
)
CFUNCTYPE(restype, *argtypes,
use_errno=False, use_last_error=False) -> function prototype.
restype: the result type
argtypes: a sequence specifying the argument types
The function prototype can be called in different ways to create a
callable object:
prototype(integer address) -> foreign function
prototype(callable) -> create and return a C callable function from callable
prototype(integer index, method name
paramflags
) -> foreign function calling a COM method
prototype((ordinal number, dll object)
paramflags
) -> foreign function exported by ordinal
prototype((function name, dll object)
paramflags
) -> foreign function exported by name