From 51ca77a114db1a5a92192151c485fed19e91e6a5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Oct 2007 09:51:13 +0000 Subject: [PATCH] patch, 7340 from frank richter add glPush/PopClientAttrib --- source/blender/python/api2_2x/BGL.c | 4 ++++ source/blender/python/api2_2x/doc/BGL.py | 15 +++++++++++++++ 2 files changed, 19 insertions(+) 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