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:
authorStephen Swaney <sswaney@centurytel.net>2005-05-22 21:40:00 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-05-22 21:40:00 +0400
commitece00ff04a90aa0aaa37f27185c25b0f7b19e77d (patch)
tree7c1143535c4828b4ca87ddda22df9fd4950e4607 /source/blender/python/api2_2x/euler.h
parent910b0f2cda7b8ca45bf16d429bb8df986e69ce1f (diff)
Roll back changes from Big Mathutils Commit on 2005/05/20.
Diffstat (limited to 'source/blender/python/api2_2x/euler.h')
-rw-r--r--source/blender/python/api2_2x/euler.h32
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 */