Blender  V3.3
Classes | Typedefs | Functions | Variables
bgl.h File Reference

Go to the source code of this file.

Classes

struct  _Buffer
 

Typedefs

typedef struct _Buffer Buffer
 

Functions

PyObject * BPyInit_bgl (void)
 
struct _BufferBGL_MakeBuffer (int type, int ndimensions, int *dimensions, void *initbuffer)
 
int BGL_typeSize (int type)
 

Variables

PyTypeObject BGL_bufferType
 

Typedef Documentation

◆ Buffer

typedef struct _Buffer Buffer

Buffer Object

For Python access to OpenGL functions requiring a pointer.

Function Documentation

◆ BGL_MakeBuffer()

struct _Buffer* BGL_MakeBuffer ( int  type,
int  ndimensions,
int *  dimensions,
void initbuffer 
)

Create a buffer object

Parameters
dimensionsAn array of ndimensions integers representing the size of each dimension.
initbufferWhen 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().

◆ BGL_typeSize()

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().

◆ BPyInit_bgl()

PyObject* BPyInit_bgl ( void  )

Variable Documentation

◆ BGL_bufferType

PyTypeObject BGL_bufferType
extern

The type object.

Definition at line 570 of file bgl.c.

Referenced by BGL_BufferOrOffsetConverter(), BGL_MakeBuffer_FromData(), and BPyInit_bgl().