Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_texture.h
- This file was copied from source/blender/python/gpu/gpu_py_offscreen.h.
| Show All 16 Lines | |||||
| /** \file | /** \file | ||||
| * \ingroup bpygpu | * \ingroup bpygpu | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "BLI_compiler_attrs.h" | #include "BLI_compiler_attrs.h" | ||||
| extern PyTypeObject BPyGPUOffScreen_Type; | extern PyTypeObject BPyGPUTexture_Type; | ||||
| #define BPyGPUOffScreen_Check(v) (Py_TYPE(v) == &BPyGPUOffScreen_Type) | #define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type) | ||||
| typedef struct BPyGPUOffScreen { | typedef struct BPyGPUTexture { | ||||
| PyObject_HEAD struct GPUOffScreen *ofs; | PyObject_HEAD struct GPUTexture *tex; | ||||
| bool is_saved; | } BPyGPUTexture; | ||||
| } BPyGPUOffScreen; | |||||
| PyObject *BPyGPUOffScreen_CreatePyObject(struct GPUOffScreen *ofs) ATTR_NONNULL(1); | int bpygpu_ParseTexture(PyObject *o, void *p); | ||||
| PyObject *BPyGPUTexture_CreatePyObject(struct GPUTexture *tex) ATTR_NONNULL(1); | |||||