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 */
|
2018-06-07 07:41:49 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup pygen
|
2018-06-07 07:41:49 +02:00
|
|
|
*/
|
|
|
|
|
|
2025-01-07 12:39:13 +01:00
|
|
|
#include <Python.h>
|
|
|
|
|
|
2025-03-15 08:58:50 +11:00
|
|
|
struct ImBuf;
|
|
|
|
|
|
2025-06-28 00:15:23 +00:00
|
|
|
[[nodiscard]] PyObject *BPyInit_imbuf();
|
2018-06-07 07:41:49 +02:00
|
|
|
|
2018-08-01 08:57:31 +10:00
|
|
|
extern PyTypeObject Py_ImBuf_Type;
|
2025-03-15 08:58:50 +11:00
|
|
|
|
|
|
|
|
/** Return the #ImBuf or null with an error set. */
|
2025-06-28 00:15:23 +00:00
|
|
|
[[nodiscard]] ImBuf *BPy_ImBuf_FromPyObject(PyObject *py_imbuf);
|