diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-31 08:43:10 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-31 08:43:10 +0400 |
commit | 302479603b6ae471e0079617cfe3a2e98e74c249 (patch) | |
tree | dda4ea3284e85cea514f02fdac331c65e8618b12 /source/blender/python/api2_2x/NMesh.h | |
parent | 721fa5479c84466f2b0c15a1781cae874875f622 (diff) |
* Updated NMesh port to exppython:
Added material and image handling/hooks and the constant dictionaries.
Changed Image.h and Material.h to only have public declarations, so
NMesh could include them.
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.h')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NMesh.h b/source/blender/python/api2_2x/NMesh.h index 3bbc1406cc9..fa10beffb3a 100644 --- a/source/blender/python/api2_2x/NMesh.h +++ b/source/blender/python/api2_2x/NMesh.h @@ -59,9 +59,12 @@ #include "DNA_armature_types.h" #include "mydevice.h" -#include "gen_utils.h" +#include "Material.h" +#include "Image.h" #include "vector.h" #include "constant.h" +#include "gen_utils.h" + /* EXPP PyType Objects */ @@ -70,6 +73,8 @@ PyTypeObject NMFace_Type; PyTypeObject NMVert_Type; PyTypeObject NMCol_Type; +PyTypeObject Image_Type; + /* Globals */ static PyObject *g_nmeshmodule = NULL; @@ -81,6 +86,9 @@ static PyObject *g_nmeshmodule = NULL; #define C_NMVert_Check(v) ((v)->ob_type == &NMVert_Type) #define C_NMCol_Check(v) ((v)->ob_type == &NMCol_Type) +static char M_NMesh_doc[] = +"The Blender.NMesh module"; + static char M_NMesh_Col_doc[]= "([r, g, b, a]) - Get a new mesh color\n\n\ [r=255, g=255, b=255, a=255] Specify the color components"; @@ -179,7 +187,7 @@ typedef struct { short mode; short flag; unsigned char transp; - PyObject *image; /* Image; was DataBlock *tpage -- PyObj is wrong, change it*/ + C_Image *image; char mat_nr, smooth; } C_NMFace; /* an NMesh face */ |