Blender V5.3
gpu_py_framebuffer.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.hh"
14
15namespace blender {
16
17namespace gpu {
18class FrameBuffer;
19} // namespace gpu
20
21extern PyTypeObject BPyGPUFrameBuffer_Type;
22
23#define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
24
26 PyObject_HEAD
28
29#ifndef GPU_NO_USE_PY_REFERENCES
31#endif
32};
33
35 bool shared_reference) ATTR_NONNULL(1);
36
37} // namespace blender
BMesh Iterators.
BLI_INLINE float fb(float length, float L)
PyObject * BPyGPUFrameBuffer_CreatePyObject(gpu::FrameBuffer *fb, bool shared_reference)
PyTypeObject BPyGPUFrameBuffer_Type
void ATTR_NONNULL(1, 2)
PyObject_HEAD gpu::FrameBuffer * fb