diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-17 08:29:49 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-17 08:29:49 +0400 |
commit | ed78dcc96cde26c56207aeb1fbd91488ca3a7f12 (patch) | |
tree | bbfb74104e4a37662a4ee84f2adcf73674ecb913 /source/blender/python/api2_2x/gen_utils.h | |
parent | 7c48bec8999d536e1b0f2316e28cb6f6a36a6bbb (diff) |
* Added submodule NMesh:
Partially implemented. Most of it comes from opy_nmesh.c, plus needed
changes to integrate in into exppython.
* Added helper submodule vector, needed by NMesh.
* Minor changes in other files.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h index 803cd64bca1..6484f61e562 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -24,27 +24,47 @@ * * This is a new part of Blender. * - * Contributor(s): Michel Selten + * Contributor(s): Michel Selten, Willian P. Germano * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifndef EXPP_gen_utils_h +#define EXPP_gen_utils_h + +#include <stdio.h> +#include <string.h> #include <Python.h> +#include <BKE_global.h> +#include <BKE_main.h> #include <DNA_ID.h> +#include <DNA_object_types.h> +#include <DNA_scriptlink_types.h> +#include <DNA_listBase.h> int StringEqual (char * string1, char * string2); char * GetIdName (ID *id); +ID *GetIdFromList(ListBase *list, char *name); + PyObject * PythonReturnErrorObject (PyObject * type, char * error_msg); PyObject * PythonIncRef (PyObject *object); PyObject * EXPP_incr_ret (PyObject *object); + char * event_to_name (short event); + float EXPP_ClampFloat (float value, float min, float max); +int EXPP_ClampInt (int value, int min, int max); + int EXPP_ReturnIntError (PyObject *type, char *error_msg); PyObject *EXPP_ReturnPyObjError (PyObject * type, char * error_msg); +int EXPP_check_sequence_consistency (PyObject *seq, PyTypeObject *against); + /* The following functions may need to be moved to the respective BKE or */ /* DNA modules. */ struct Object * GetObjectByName (char * name); + +#endif /* EXPP_gen_utils_h */ |