Blender V4.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
9#pragma once
10
11#include "BLI_compiler_attrs.h"
12
13struct GPUFrameBuffer;
14
15extern PyTypeObject BPyGPUFrameBuffer_Type;
16
17#define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
18
20 PyObject_HEAD
21 GPUFrameBuffer *fb;
22
23#ifndef GPU_NO_USE_PY_REFERENCES
25#endif
26};
27
28PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_reference)
29 ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
PyObject * BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_reference) ATTR_NONNULL(1)
PyTypeObject BPyGPUFrameBuffer_Type
BLI_INLINE float fb(float length, float L)
PyObject_HEAD GPUFrameBuffer * fb