Blender V4.3
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, const int *dimensions, const 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,
const int * dimensions,
const 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 703 of file bgl.cc.

References _Buffer::asvoid, BGL_MakeBuffer_FromData(), BGL_typeSize(), _Buffer::buf, MEM_mallocN, and size().

Referenced by Buffer_new().

◆ BGL_typeSize()

int BGL_typeSize ( int type)

Definition at line 487 of file bgl.cc.

References double(), float, and int.

Referenced by BGL_MakeBuffer(), and Buffer_item().

◆ BPyInit_bgl()

Variable Documentation

◆ BGL_bufferType

PyTypeObject BGL_bufferType
extern

The type object.

Definition at line 634 of file bgl.cc.

Referenced by BGL_MakeBuffer_FromData(), and BPyInit_bgl().