diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2008-08-01 06:16:36 +0400 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2008-08-01 06:16:36 +0400 |
commit | 4580fd1415d92ed882744e2617f5ac05e895452f (patch) | |
tree | f47adf7201b502acf9c6da117b7a94ad50b79ef9 /source/blender/freestyle/intern/python/BPy_FrsMaterial.h | |
parent | 149f3688a4663dbaf890f6f5e5a41c35ce6d5e56 (diff) |
soc-2008-mxcurioni: clean-up #1
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_FrsMaterial.h')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_FrsMaterial.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_FrsMaterial.h b/source/blender/freestyle/intern/python/BPy_FrsMaterial.h new file mode 100644 index 00000000000..e1c31864b63 --- /dev/null +++ b/source/blender/freestyle/intern/python/BPy_FrsMaterial.h @@ -0,0 +1,36 @@ +#ifndef FREESTYLE_PYTHON_MATERIAL_H +#define FREESTYLE_PYTHON_MATERIAL_H + +#include "../scene_graph/Material.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/////////////////////////////////////////////////////////////////////////////////////////// + +#include <Python.h> + +extern PyTypeObject Material_Type; + +#define BPy_Material_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &Material_Type) ) + +/*---------------------------Python BPy_Material structure definition----------*/ +typedef struct { + PyObject_HEAD + Material *m; +} BPy_Material; + +/*---------------------------Python BPy_Material visible prototypes-----------*/ + +PyMODINIT_FUNC Material_Init( PyObject *module ); + + +/////////////////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +} +#endif + + +#endif /* FREESTYLE_PYTHON_MATERIAL_H */ |