Blender  V3.3
bgl.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 PyObject *BPyInit_bgl(void);
10 
18 struct _Buffer *BGL_MakeBuffer(int type, int ndimensions, int *dimensions, void *initbuffer);
19 
20 int BGL_typeSize(int type);
21 
27 typedef struct _Buffer {
28  PyObject_VAR_HEAD
29  PyObject *parent;
30 
31  int type; /* GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT */
33  int *dimensions;
34 
35  union {
36  char *asbyte;
37  short *asshort;
38  int *asint;
39  float *asfloat;
40  double *asdouble;
41 
42  void *asvoid;
43  } buf;
45 
47 extern PyTypeObject BGL_bufferType;
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
struct _Buffer Buffer
PyObject * BPyInit_bgl(void)
Definition: bgl.c:2599
int BGL_typeSize(int type)
Definition: bgl.c:432
PyTypeObject BGL_bufferType
Definition: bgl.c:570
struct _Buffer * BGL_MakeBuffer(int type, int ndimensions, int *dimensions, void *initbuffer)
Definition: bgl.c:655
Definition: bgl.h:27
union _Buffer::@1154 buf
void * asvoid
Definition: bgl.h:42
char * asbyte
Definition: bgl.h:36
int type
Definition: bgl.h:31
short * asshort
Definition: bgl.h:37
int * asint
Definition: bgl.h:38
int ndimensions
Definition: bgl.h:32
int * dimensions
Definition: bgl.h:33
float * asfloat
Definition: bgl.h:39
double * asdouble
Definition: bgl.h:40
PyObject_VAR_HEAD PyObject * parent
Definition: bgl.h:29