From 0c64c49d2f930aed4ef310c2331bc3df0932cbe2 Mon Sep 17 00:00:00 2001 From: Maxime Curioni Date: Sat, 26 Jul 2008 21:47:39 +0000 Subject: soc-2008-mxcurioni: added (but did not test) ViewMap and Noise classes. Updated ViewShape class accordingly --- .../blender/freestyle/intern/python/BPy_ViewMap.h | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 source/blender/freestyle/intern/python/BPy_ViewMap.h (limited to 'source/blender/freestyle/intern/python/BPy_ViewMap.h') diff --git a/source/blender/freestyle/intern/python/BPy_ViewMap.h b/source/blender/freestyle/intern/python/BPy_ViewMap.h new file mode 100644 index 00000000000..841b5d46f07 --- /dev/null +++ b/source/blender/freestyle/intern/python/BPy_ViewMap.h @@ -0,0 +1,34 @@ +#ifndef FREESTYLE_PYTHON_VIEWMAP_H +#define FREESTYLE_PYTHON_VIEWMAP_H + +#include "../view_map/ViewMap.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/////////////////////////////////////////////////////////////////////////////////////////// + +#include + +extern PyTypeObject ViewMap_Type; + +#define BPy_ViewMap_Check(v) (( (PyObject *) v)->ob_type == &ViewMap_Type) + +/*---------------------------Python BPy_ViewMap structure definition----------*/ +typedef struct { + PyObject_HEAD + ViewMap *vm; +} BPy_ViewMap; + +/*---------------------------Python BPy_ViewMap visible prototypes-----------*/ + +PyMODINIT_FUNC ViewMap_Init( PyObject *module ); + +/////////////////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +} +#endif + +#endif /* FREESTYLE_PYTHON_VIEWMAP_H */ -- cgit v1.2.3