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.h | |
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.h')
-rw-r--r-- | source/blender/python/api2_2x/BGL.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/BGL.h b/source/blender/python/api2_2x/BGL.h index 94cb40098d0..fe9ef6d6948 100644 --- a/source/blender/python/api2_2x/BGL.h +++ b/source/blender/python/api2_2x/BGL.h @@ -420,6 +420,15 @@ static PyObject *Method_##funcname (PyObject *self, PyObject *args) {\ ret_ret_##ret; \ } +#define BGLU_Wrap(nargs, funcname, ret, arg_list) \ +static PyObject *Method_##funcname (PyObject *self, PyObject *args) {\ + arg_def##nargs arg_list; \ + ret_def_##ret; \ + if(!PyArg_ParseTuple(args, arg_str##nargs arg_list, arg_ref##nargs arg_list)) return NULL;\ + ret_set_##ret glu##funcname (arg_var##nargs arg_list);\ + ret_ret_##ret; \ +} + /* #endif */ PyObject *BGL_Init(void); |