diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-30 15:09:46 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-30 15:09:46 +0400 |
commit | d38329b5aa6be472ea49c3a52b61875a772a6c9a (patch) | |
tree | 8f8ebf5a0438725b6d5398f1cb5d1f3c028ce668 /source/gameengine/Ketsji/KX_PyMath.h | |
parent | b97c77df2bafd7add01ea9dc8bfcad1e82714559 (diff) |
Added Python module for Lights.
Added attributes to the vertex class.
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyMath.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_PyMath.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_PyMath.h b/source/gameengine/Ketsji/KX_PyMath.h index 7fdf207e435..72793a6cbae 100644 --- a/source/gameengine/Ketsji/KX_PyMath.h +++ b/source/gameengine/Ketsji/KX_PyMath.h @@ -34,11 +34,12 @@ #ifndef __KX_PYMATH_H__ #define __KX_PYMATH_H__ -#include "MT_Vector3.h" +#include "MT_Point2.h" #include "MT_Point3.h" +#include "MT_Vector3.h" #include "MT_Vector4.h" -#include "MT_Matrix4x4.h" #include "MT_Matrix3x3.h" +#include "MT_Matrix4x4.h" #include "KX_Python.h" @@ -58,6 +59,11 @@ MT_Point3 MT_Point3FromPyList(PyObject* pylist); MT_Vector4 MT_Vector4FromPyList(PyObject* pylist); /** + * Converts a python list to an MT_Vector2 + */ +MT_Point2 MT_Point2FromPyList(PyObject* pylist); + +/** * Converts a python list to an MT_Quaternion */ MT_Quaternion MT_QuaternionFromPyList(PyObject* pylist); @@ -93,11 +99,21 @@ PyObject* PyObjectFromMT_Matrix3x3(const MT_Matrix3x3 &mat); PyObject* PyObjectFromMT_Vector3(const MT_Vector3 &vec); /** + * Converts an MT_Vector4 to a python object + */ +PyObject* PyObjectFromMT_Vector4(const MT_Vector4 &vec); + +/** * Converts an MT_Vector3 to a python object. */ PyObject* PyObjectFromMT_Point3(const MT_Point3 &pos); /** + * Converts an MT_Point2 to a python object. + */ +PyObject* PyObjectFromMT_Point2(const MT_Point2 &vec); + +/** * True if the given PyObject can be converted to an MT_Matrix * @param rank = 3 (for MT_Matrix3x3) or 4 (for MT_Matrix4x4) */ |