Blender V4.3
bgl.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15PyObject *BPyInit_bgl(void);
16
24struct _Buffer *BGL_MakeBuffer(int type,
25 int ndimensions,
26 const int *dimensions,
27 const void *initbuffer);
28
29int BGL_typeSize(int type);
30
36typedef struct _Buffer {
37 PyObject_VAR_HEAD
38 PyObject *parent;
39
40 int type; /* GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT */
43
44 union {
45 char *asbyte;
46 short *asshort;
47 int *asint;
48 float *asfloat;
49 double *asdouble;
50
51 void *asvoid;
52 } buf;
54
56extern PyTypeObject BGL_bufferType;
57
58#ifdef __cplusplus
59}
60#endif
PyObject * BPyInit_bgl(void)
Definition bgl.cc:2658
struct _Buffer Buffer
int BGL_typeSize(int type)
Definition bgl.cc:487
PyTypeObject BGL_bufferType
Definition bgl.cc:634
struct _Buffer * BGL_MakeBuffer(int type, int ndimensions, const int *dimensions, const void *initbuffer)
Definition bgl.cc:703
Definition bgl.h:36
void * asvoid
Definition bgl.h:51
char * asbyte
Definition bgl.h:45
int type
Definition bgl.h:40
union _Buffer::@1341 buf
short * asshort
Definition bgl.h:46
int * asint
Definition bgl.h:47
int ndimensions
Definition bgl.h:41
int * dimensions
Definition bgl.h:42
float * asfloat
Definition bgl.h:48
double * asdouble
Definition bgl.h:49
PyObject_VAR_HEAD PyObject * parent
Definition bgl.h:38