| |
- GLUStruct(Structure)
-
- GLUnurbs(GLUnurbs, GLUStruct)
- GLUnurbs(Structure)
-
- GLUnurbs(GLUnurbs, GLUStruct)
class GLUnurbs(GLUnurbs, GLUStruct) |
|
GLU Nurbs structure with oor and callback storage support
IMPORTANT NOTE: the texture coordinate callback receives a raw ctypes
data-pointer, as without knowing what type of evaluation is being done
(1D or 2D) we cannot safely determine the size of the array to convert
it. This is a limitation of the C implementation. To convert to regular
data-pointer, just call yourNurb.ptrAsArray( ptr, size, arrays.GLfloatArray )
with the size of data you expect. |
|
- Method resolution order:
- GLUnurbs
- GLUnurbs
- GLUStruct
- Structure
- _ctypes._CData
- object
Data and other attributes defined here:
- CALLBACK_FUNCTION_REGISTRARS = {GLU_NURBS_ERROR: <CFunctionType object>, GLU_NURBS_BEGIN: <CFunctionType object>, GLU_NURBS_VERTEX: <CFunctionType object>, GLU_NURBS_NORMAL: <CFunctionType object>, GLU_NURBS_COLOR: <CFunctionType object>, GLU_NURBS_TEXTURE_COORD: <CFunctionType object>, GLU_NURBS_END: <CFunctionType object>, GLU_NURBS_BEGIN_DATA: <CFunctionType object>, GLU_NURBS_VERTEX_DATA: <CFunctionType object>, GLU_NURBS_NORMAL_DATA: <CFunctionType object>, ...}
- CALLBACK_TYPES = {GLU_NURBS_ERROR: <class 'ctypes.CFunctionType'>, GLU_NURBS_BEGIN: <class 'ctypes.CFunctionType'>, GLU_NURBS_VERTEX: <class 'ctypes.CFunctionType'>, GLU_NURBS_NORMAL: <class 'ctypes.CFunctionType'>, GLU_NURBS_COLOR: <class 'ctypes.CFunctionType'>, GLU_NURBS_TEXTURE_COORD: <class 'ctypes.CFunctionType'>, GLU_NURBS_END: <class 'ctypes.CFunctionType'>, GLU_NURBS_BEGIN_DATA: <class 'ctypes.CFunctionType'>, GLU_NURBS_VERTEX_DATA: <class 'ctypes.CFunctionType'>, GLU_NURBS_NORMAL_DATA: <class 'ctypes.CFunctionType'>, ...}
- WRAPPER_METHODS = {GLU_NURBS_ERROR: None, GLU_NURBS_BEGIN: None, GLU_NURBS_VERTEX: '_vec3', GLU_NURBS_NORMAL: '_vec3', GLU_NURBS_COLOR: '_vec4', GLU_NURBS_TEXTURE_COORD: '_tex', GLU_NURBS_END: None, GLU_NURBS_BEGIN_DATA: '_justOOR', GLU_NURBS_VERTEX_DATA: '_vec3', GLU_NURBS_NORMAL_DATA: '_vec3', ...}
Data and other attributes inherited from GLUnurbs:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'GLUnurbs' objects>
- list of weak references to the object (if defined)
Methods inherited from GLUStruct:
- addCallback(self, which, function)
- Register a callback for this structure object
- getAsParam(self)
- Gets as a ctypes pointer to the underlying structure
- noteObject(self, object)
- Note object for later retrieval as a Python object pointer
This is the registration point for "original object return", returns
a void pointer to the Python object, though this is, effectively, an
opaque value.
- originalObject(self, voidPointer)
- Given a void-pointer, try to find our original Python object
- ptrAsArray(self, ptr, length, type)
- Copy length values from ptr into new array of given type
Methods inherited from Structure:
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Data and other attributes inherited from Structure:
- __new__ = <built-in method __new__ of _ctypes.StructType object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(...)
- __hash__(...)
- x.__hash__() <==> hash(x)
| |