Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | _Buffer |
Typedefs | |
typedef struct _Buffer | Buffer |
Functions | |
PyObject * | BPyInit_bgl (void) |
struct _Buffer * | BGL_MakeBuffer (int type, int ndimensions, int *dimensions, void *initbuffer) |
int | BGL_typeSize (int type) |
Variables | |
PyTypeObject | BGL_bufferType |
Buffer Object
For Python access to OpenGL functions requiring a pointer.
Create a buffer object
dimensions | An array of ndimensions integers representing the size of each dimension. |
initbuffer | When not NULL holds a contiguous buffer with the correct format from which the buffer will be initialized |
Definition at line 655 of file bgl.c.
References BGL_MakeBuffer_FromData(), BGL_typeSize(), buffer, MEM_mallocN, NULL, size(), and type.
Referenced by Buffer_new().
int BGL_typeSize | ( | int | type | ) |
Definition at line 432 of file bgl.c.
References double(), float(), and type.
Referenced by BGL_MakeBuffer(), and Buffer_item().
PyObject* BPyInit_bgl | ( | void | ) |
Definition at line 2599 of file bgl.c.
References BGL_bufferType, BGL_module_def, init_bgl_version_1_0_methods(), init_bgl_version_1_1_constants(), init_bgl_version_1_1_methods(), init_bgl_version_1_2_constants(), init_bgl_version_1_2_methods(), init_bgl_version_1_3_constants(), init_bgl_version_1_3_methods(), init_bgl_version_1_4_constants(), init_bgl_version_1_4_methods(), init_bgl_version_1_5_constants(), init_bgl_version_1_5_methods(), init_bgl_version_2_0_constants(), init_bgl_version_2_0_methods(), init_bgl_version_2_1_constants(), init_bgl_version_2_1_methods(), init_bgl_version_3_0_constants(), init_bgl_version_3_0_methods(), init_bgl_version_3_1_constants(), init_bgl_version_3_1_methods(), init_bgl_version_3_2_constants(), init_bgl_version_3_2_methods(), init_bgl_version_3_3_constants(), init_bgl_version_3_3_methods(), and NULL.
|
extern |
The type object.
Definition at line 570 of file bgl.c.
Referenced by BGL_BufferOrOffsetConverter(), BGL_MakeBuffer_FromData(), and BPyInit_bgl().