Blender V4.5
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.h"
14
15struct GPUFrameBuffer;
16
17extern PyTypeObject BPyGPUFrameBuffer_Type;
18
19#define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
20
22 PyObject_HEAD
23 GPUFrameBuffer *fb;
24
25#ifndef GPU_NO_USE_PY_REFERENCES
27#endif
28};
29
30PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_reference)
31 ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUFrameBuffer_Type
PyObject * BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_reference) ATTR_NONNULL(1)
BLI_INLINE float fb(float length, float L)
PyObject_HEAD GPUFrameBuffer * fb