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 */
|
2013-02-23 18:32:28 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup freestyle
|
2013-02-23 18:32:28 +00:00
|
|
|
*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#pragma once
|
2008-07-18 20:31:40 +00:00
|
|
|
|
2014-04-17 12:25:41 +09:00
|
|
|
extern "C" {
|
2010-04-07 23:28:29 +00:00
|
|
|
#include <Python.h>
|
2014-04-17 12:25:41 +09:00
|
|
|
}
|
2010-04-07 23:28:29 +00:00
|
|
|
|
2008-07-18 20:31:40 +00:00
|
|
|
#include "../winged_edge/Nature.h"
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
extern PyTypeObject Nature_Type;
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#define BPy_Nature_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Nature_Type))
|
2008-07-18 20:31:40 +00:00
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_Nature structure definition----------*/
|
|
|
|
|
typedef struct {
|
2009-09-27 00:32:20 +00:00
|
|
|
PyLongObject i;
|
2008-07-18 20:31:40 +00:00
|
|
|
} BPy_Nature;
|
|
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_Nature visible prototypes-----------*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
int Nature_Init(PyObject *module);
|
2008-07-18 20:31:40 +00:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|