OpenGL.GLU.tess
Wrapper/Implementation of the GLU tessellator objects for PyOpenGL
Functions
gluNewTess(
)
-> <class 'OpenGL.GLU.tess.LP_GLUtesselator'>
Get a new tessellator object (just unpacks the pointer for you)
gluTessCallback(
tess
,
which
,
function
)
Set a given gluTessellator callback for the given tessellator
Classes
Implementation class for GLUTessellator structures in OpenGL-ctypes
combineWrapper(
self
,
function
)
Wrap a Python function with ctypes-compatible wrapper for combine callback
For a Python combine callback, the signature looks like this:
def combine(
GLdouble coords
void *vertex_data[4
,
GLfloat weight
):
return data
While the C signature looks like this:
void combine(
GLdouble coords[3
,
void *vertex_data
GLfloat weight[4
,
void **outData
)
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