diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-13 05:54:28 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-05-13 05:54:28 +0400 |
commit | b9f6d66328b8b96d4f1fe29f761a99fbe531c4de (patch) | |
tree | f20e0d83b867bef9d5aa0009802e1cc486f0c5dd /source/blender/python/api2_2x/BGL.c | |
parent | eca049b177e08a0b8a182cc373e2ae225f7f8a11 (diff) |
* Added 3 missing functions, 2 of them called by blender/src/drawtext.c:
Callbacks registered with Draw.Register in Python are called now.
That should fix submodule Blender.Draw.
* Added a few other missing functions to BPY_interface.c
* Finished implementing Get() function for Camera, Lamp, Image and Text:
Both the .Get(name) and .Get() cases are handled now.
* Added function Blender.ReleaseGlobalDict():
This function should give script writers control over whether the
global Python Interpreter Dict should be cleared after the script is
run (default is to clear). This is a test.
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index 858b343bfe8..0e9d8938146 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -337,7 +337,10 @@ static PyObject *Buffer_repr(PyObject *self) } /* BGL_Wrap defined in BGL.h */ -#ifndef __APPLE__ + +/* Let's try to take away this ifndef: */ +/* #ifndef __APPLE__ */ + BGL_Wrap(2, Accum, void, (GLenum, GLfloat)) BGL_Wrap(2, AlphaFunc, void, (GLenum, GLclampf)) BGL_Wrap(3, AreTexturesResident, GLboolean, (GLsizei, GLuintP, GLbooleanP)) @@ -663,7 +666,8 @@ 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)) -#endif + +/* #endif */ #undef MethodDef #define MethodDef(func) {"gl"#func, Method_##func, METH_VARARGS} @@ -673,8 +677,10 @@ BGL_Wrap(4, Viewport, void, (GLint, GLint, GLsizei, GLsizei)) static struct PyMethodDef BGL_methods[] = { {"Buffer", Method_Buffer, METH_VARARGS, Method_Buffer_doc}, -#ifndef __APPLE__ - MethodDef( Accum), + +/* #ifndef __APPLE__ */ + + MethodDef( Accum), MethodDef( AlphaFunc), MethodDef( AreTexturesResident), MethodDef( Begin), @@ -987,7 +993,8 @@ static struct PyMethodDef BGL_methods[] = { MethodDef( Vertex4s), MethodDef( Vertex4sv), MethodDef( Viewport), -#endif + +/* #endif */ {NULL, NULL} }; |