Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-26 06:33:21 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-26 06:33:21 +0400
commitb216e4d12d8e4e416724d33a9a4c017d2809e5d0 (patch)
tree55585a6ebed6d1acde03150a4b62c27ca053f37f /source/blender/freestyle/intern/python/BPy_FrsMaterial.h
parent51f9082c964fda6ba90aa5b503a06f22c5a9ee60 (diff)
soc-2008-mxcurioni: implemented (but did not test) the following classes: Material, Chain, FEdgeSharp, FEdgeSmooth. All Interface1D classes have now been fully implemented.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_FrsMaterial.h')
-rw-r--r--source/blender/freestyle/intern/python/BPy_FrsMaterial.h36
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..90ed6805974
--- /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 FrsMaterial_Type;
+
+#define BPy_FrsMaterial_Check(v) (( (PyObject *) v)->ob_type == &FrsMaterial_Type)
+
+/*---------------------------Python BPy_FrsMaterial structure definition----------*/
+typedef struct {
+ PyObject_HEAD
+ Material *m;
+} BPy_FrsMaterial;
+
+/*---------------------------Python BPy_FrsMaterial visible prototypes-----------*/
+
+PyMODINIT_FUNC FrsMaterial_Init( PyObject *module );
+
+
+///////////////////////////////////////////////////////////////////////////////////////////
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* FREESTYLE_PYTHON_MATERIAL_H */