Also see #103343. Pull Request: https://projects.blender.org/blender/blender/pulls/110352
35 lines
645 B
C
35 lines
645 B
C
/* SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bpygpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_compiler_attrs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern PyTypeObject BPyGPUTexture_Type;
|
|
|
|
#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
|
|
|
|
typedef struct BPyGPUTexture {
|
|
PyObject_HEAD
|
|
struct GPUTexture *tex;
|
|
} BPyGPUTexture;
|
|
|
|
int bpygpu_ParseTexture(PyObject *o, void *p);
|
|
PyObject *bpygpu_texture_init(void);
|
|
|
|
PyObject *BPyGPUTexture_CreatePyObject(struct GPUTexture *tex, bool shared_reference)
|
|
ATTR_NONNULL(1);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|