2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-09-09 11:55:38 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup bpygpu
|
2011-09-09 11:55:38 +00:00
|
|
|
*/
|
2013-09-19 23:17:52 +00:00
|
|
|
|
2018-09-05 21:10:42 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "BLI_compiler_attrs.h"
|
|
|
|
|
|
2023-07-21 19:41:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2018-09-05 21:10:42 -03:00
|
|
|
extern PyTypeObject BPyGPUOffScreen_Type;
|
|
|
|
|
|
|
|
|
|
#define BPyGPUOffScreen_Check(v) (Py_TYPE(v) == &BPyGPUOffScreen_Type)
|
2013-09-19 23:17:52 +00:00
|
|
|
|
2021-11-23 13:55:17 +01:00
|
|
|
struct GPUViewport;
|
|
|
|
|
|
2018-09-05 21:10:42 -03:00
|
|
|
typedef struct BPyGPUOffScreen {
|
2021-06-24 17:10:22 +10:00
|
|
|
PyObject_HEAD
|
|
|
|
|
struct GPUOffScreen *ofs;
|
2021-11-23 13:55:17 +01:00
|
|
|
struct GPUViewport *viewport;
|
2018-09-05 21:10:42 -03:00
|
|
|
} BPyGPUOffScreen;
|
2011-09-09 11:55:38 +00:00
|
|
|
|
2018-09-05 21:10:42 -03:00
|
|
|
PyObject *BPyGPUOffScreen_CreatePyObject(struct GPUOffScreen *ofs) ATTR_NONNULL(1);
|
2023-07-21 19:41:03 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|