Blender
V4.5
source
blender
python
gpu
gpu_py_vertex_buffer.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include <Python.h>
12
13
#include "
BLI_compiler_attrs.h
"
14
15
namespace
blender::gpu
{
16
class
VertBuf
;
17
}
18
19
extern
PyTypeObject
BPyGPUVertBuf_Type
;
20
21
#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
22
23
struct
BPyGPUVertBuf
{
24
PyObject_VAR_HEAD
25
/* The buf is owned, we may support thin wrapped batches later. */
26
blender::gpu::VertBuf
*
buf
;
27
};
28
29
PyObject *
BPyGPUVertBuf_CreatePyObject
(
blender::gpu::VertBuf
*buf)
ATTR_NONNULL
(1);
BLI_compiler_attrs.h
ATTR_NONNULL
#define ATTR_NONNULL(...)
Definition
BLI_compiler_attrs.h:25
blender::gpu::VertBuf
Definition
GPU_vertex_buffer.hh:62
BPyGPUVertBuf_Type
PyTypeObject BPyGPUVertBuf_Type
Definition
gpu_py_vertex_buffer.cc:366
BPyGPUVertBuf_CreatePyObject
PyObject * BPyGPUVertBuf_CreatePyObject(blender::gpu::VertBuf *buf)
Definition
gpu_py_vertex_buffer.cc:424
blender::gpu
Definition
blf_internal_types.hh:31
BPyGPUVertBuf
Definition
gpu_py_vertex_buffer.hh:23
BPyGPUVertBuf::buf
PyObject_VAR_HEAD blender::gpu::VertBuf * buf
Definition
gpu_py_vertex_buffer.hh:26
Generated on
for Blender by
doxygen
1.18.0