Blender
V4.3
source
blender
python
generic
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
12
extern
"C"
{
13
#endif
14
15
PyObject *
BPyInit_bgl
(
void
);
16
24
struct
_Buffer
*
BGL_MakeBuffer
(
int
type,
25
int
ndimensions
,
26
const
int
*dimensions,
27
const
void
*initbuffer);
28
29
int
BGL_typeSize
(
int
type);
30
36
typedef
struct
_Buffer
{
37
PyObject_VAR_HEAD
38
PyObject *
parent
;
39
40
int
type
;
/* GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT */
41
int
ndimensions
;
42
int
*
dimensions
;
43
44
union
{
45
char
*
asbyte
;
46
short
*
asshort
;
47
int
*
asint
;
48
float
*
asfloat
;
49
double
*
asdouble
;
50
51
void
*
asvoid
;
52
}
buf
;
53
}
Buffer
;
54
56
extern
PyTypeObject
BGL_bufferType
;
57
58
#ifdef __cplusplus
59
}
60
#endif
BPyInit_bgl
PyObject * BPyInit_bgl(void)
Definition
bgl.cc:2658
Buffer
struct _Buffer Buffer
BGL_typeSize
int BGL_typeSize(int type)
Definition
bgl.cc:487
BGL_bufferType
PyTypeObject BGL_bufferType
Definition
bgl.cc:634
BGL_MakeBuffer
struct _Buffer * BGL_MakeBuffer(int type, int ndimensions, const int *dimensions, const void *initbuffer)
Definition
bgl.cc:703
_Buffer
Definition
bgl.h:36
_Buffer::asvoid
void * asvoid
Definition
bgl.h:51
_Buffer::asbyte
char * asbyte
Definition
bgl.h:45
_Buffer::type
int type
Definition
bgl.h:40
_Buffer::buf
union _Buffer::@1341 buf
_Buffer::asshort
short * asshort
Definition
bgl.h:46
_Buffer::asint
int * asint
Definition
bgl.h:47
_Buffer::ndimensions
int ndimensions
Definition
bgl.h:41
_Buffer::dimensions
int * dimensions
Definition
bgl.h:42
_Buffer::asfloat
float * asfloat
Definition
bgl.h:48
_Buffer::asdouble
double * asdouble
Definition
bgl.h:49
_Buffer::parent
PyObject_VAR_HEAD PyObject * parent
Definition
bgl.h:38
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0