diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-17 13:51:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-17 13:51:13 +0400 |
commit | 51ca77a114db1a5a92192151c485fed19e91e6a5 (patch) | |
tree | 785683ea74460d6564ff79485e84932743af9844 | |
parent | 919e5baba8a258eecd9e56009055f5b4e753ab83 (diff) |
patch, 7340 from frank richter add glPush/PopClientAttrib
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/BGL.py | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index b18b71b39fa..56cc8c63b5f 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -618,10 +618,12 @@ BGL_Wrap(2, PolygonMode, void, (GLenum, GLenum)) BGL_Wrap(2, PolygonOffset, void, (GLfloat, GLfloat)) BGL_Wrap(1, PolygonStipple, void, (GLubyteP)) BGL_Wrap(1, PopAttrib, void, (void)) +BGL_Wrap(1, PopClientAttrib, void, (void)) BGL_Wrap(1, PopMatrix, void, (void)) BGL_Wrap(1, PopName, void, (void)) BGL_Wrap(3, PrioritizeTextures, void, (GLsizei, GLuintP, GLclampfP)) BGL_Wrap(1, PushAttrib, void, (GLbitfield)) +BGL_Wrap(1, PushClientAttrib, void, (GLbitfield)) BGL_Wrap(1, PushMatrix, void, (void)) BGL_Wrap(1, PushName, void, (GLuint)) BGL_Wrap(2, RasterPos2d, void, (GLdouble, GLdouble)) @@ -951,10 +953,12 @@ static struct PyMethodDef BGL_methods[] = { MethodDef(PolygonOffset), MethodDef(PolygonStipple), MethodDef(PopAttrib), + MethodDef(PopClientAttrib), MethodDef(PopMatrix), MethodDef(PopName), MethodDef(PrioritizeTextures), MethodDef(PushAttrib), + MethodDef(PushClientAttrib), MethodDef(PushMatrix), MethodDef(PushName), MethodDef(RasterPos2d), diff --git a/source/blender/python/api2_2x/doc/BGL.py b/source/blender/python/api2_2x/doc/BGL.py index 26bbfe0def6..661042f341b 100644 --- a/source/blender/python/api2_2x/doc/BGL.py +++ b/source/blender/python/api2_2x/doc/BGL.py @@ -1213,6 +1213,12 @@ def glPopAttrib(): @see: U{www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/pushattrib.html} """ +def glPopClientAttrib(): + """ + Pop the client attribute stack + @see: U{www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/pushclientattrib.html} + """ + def glPopMatrix(): """ Pop the current matrix stack @@ -1248,6 +1254,15 @@ def glPushAttrib(mask): @param mask: Specifies a mask that indicates which attributes to save. """ +def glPushClientAttrib(mask): + """ + Push the client attribute stack + @see: U{www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/pushclientattrib.html} + + @type mask: Enumerated constant(s) + @param mask: Specifies a mask that indicates which attributes to save. + """ + def glPushMatrix(): """ Push the current matrix stack |