diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-08-17 08:26:00 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-08-17 08:26:00 +0400 |
commit | 446e1fae7c14cd4b5035d447c5b011f6fab9e806 (patch) | |
tree | 1c9cbf850f59111d6c1d38dfd8ed021934743c94 /source/blender/python/api2_2x/BGL.c | |
parent | 5a39312392858daafa6b05664a1cc03971f9ca42 (diff) |
** Note: two new files added, projectfiles will need an update.
Scripts:
Campbell Barton (Ideasman, thanks) updated his Wavefront OBJ importer.
BPython:
- Finally committed pending contributions:
Chris Keith wrote the Blender.Sound module -- still some testing to do this week;
Joseph (joeedh) added the OnLoad scene script event;
Satish Goda added 6 GLU functions to Blender.BGL. Great additions, thanks all!
- Small changes to Blender.Load (leave editmode as Blender wants) and Window.EditMode (allow definition of "undo string");
- Fixed bug #1539: Window.RedrawAll() crashed Blender if an empty spacescript was available while using it in a gui-less script.
- doc updates.
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index d553d077e24..df9bdc086aa 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -665,12 +665,18 @@ BGL_Wrap(1, Vertex4iv, void, (GLintP)) BGL_Wrap(4, Vertex4s, void, (GLshort, GLshort, GLshort, GLshort)) BGL_Wrap(1, Vertex4sv, void, (GLshortP)) BGL_Wrap(4, Viewport, void, (GLint, GLint, GLsizei, GLsizei)) +BGLU_Wrap(4, Perspective, void, (GLdouble, GLdouble, GLdouble, GLdouble)) +BGLU_Wrap(9, LookAt, void, (GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)) +BGLU_Wrap(4, Ortho2D, void, (GLdouble, GLdouble, GLdouble, GLdouble)) +BGLU_Wrap(5, PickMatrix, void, (GLdouble, GLdouble, GLdouble, GLdouble, GLintP)) +BGLU_Wrap(9, Project, GLint, (GLdouble, GLdouble, GLdouble, GLdoubleP, GLdoubleP, GLintP, GLdoubleP, GLdoubleP, GLdoubleP)) +BGLU_Wrap(9, UnProject, GLint, (GLdouble, GLdouble, GLdouble, GLdoubleP, GLdoubleP, GLintP, GLdoubleP, GLdoubleP, GLdoubleP)) /* #endif */ #undef MethodDef #define MethodDef(func) {"gl"#func, Method_##func, METH_VARARGS, "no string"} - +#define MethodDefu(func) {"glu"#func, Method_##func, METH_VARARGS, "no string"} /* So that MethodDef(Accum) becomes: * {"glAccum", Method_Accumfunc, METH_VARARGS} */ @@ -992,7 +998,12 @@ static struct PyMethodDef BGL_methods[] = { MethodDef(Vertex4s), MethodDef(Vertex4sv), MethodDef(Viewport), - + MethodDefu(Perspective), + MethodDefu(LookAt), + MethodDefu(Ortho2D), + MethodDefu(PickMatrix), + MethodDefu(Project), + MethodDefu(UnProject), /* #endif */ {NULL, NULL, 0, NULL} |