diff options
Diffstat (limited to 'source/blender/python/api2_2x/euler.h')
-rw-r--r-- | source/blender/python/api2_2x/euler.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/source/blender/python/api2_2x/euler.h b/source/blender/python/api2_2x/euler.h index 1b5dca26df7..1c3b21f7ffc 100644 --- a/source/blender/python/api2_2x/euler.h +++ b/source/blender/python/api2_2x/euler.h @@ -1,3 +1,4 @@ + /* * $Id$ * @@ -34,28 +35,33 @@ #ifndef EXPP_euler_h #define EXPP_euler_h +#include "Python.h" +#include "gen_utils.h" +#include "Types.h" +#include <BLI_arithb.h> +#include "quat.h" +#include "matrix.h" +#include "BKE_utildefines.h" + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +/*****************************/ +// Euler Python Object +/*****************************/ + #define EulerObject_Check(v) ((v)->ob_type == &euler_Type) typedef struct { - PyObject_VAR_HEAD - struct{ - float *py_data; //python managed - float *blend_data; //blender managed - }data; - float *eul; //1D array of data (alias) + PyObject_VAR_HEAD float *eul; } EulerObject; -/*struct data contains a pointer to the actual data that the -object uses. It can use either PyMem allocated data (which will -be stored in py_data) or be a wrapper for data allocated through -blender (stored in blend_data). This is an either/or struct not both*/ - //prototypes +PyObject *newEulerObject( float *eul ); PyObject *Euler_Zero( EulerObject * self ); PyObject *Euler_Unique( EulerObject * self ); PyObject *Euler_ToMatrix( EulerObject * self ); PyObject *Euler_ToQuat( EulerObject * self ); -PyObject *Euler_Rotate( EulerObject * self, PyObject *args ); -PyObject *newEulerObject( float *eul, int type ); #endif /* EXPP_euler_h */ |