[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12267] trunk/blender/source/blender/ python/api2_2x: patch, 7340 from frank richter add glPush/PopClientAttrib

Campbell Barton cbarton at metavr.com
Wed Oct 17 11:51:14 CEST 2007


Revision: 12267
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12267
Author:   campbellbarton
Date:     2007-10-17 11:51:13 +0200 (Wed, 17 Oct 2007)

Log Message:
-----------
patch, 7340 from frank richter add glPush/PopClientAttrib

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/BGL.c
    trunk/blender/source/blender/python/api2_2x/doc/BGL.py

Modified: trunk/blender/source/blender/python/api2_2x/BGL.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/BGL.c	2007-10-17 08:23:08 UTC (rev 12266)
+++ trunk/blender/source/blender/python/api2_2x/BGL.c	2007-10-17 09:51:13 UTC (rev 12267)
@@ -618,10 +618,12 @@
 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 @@
 	MethodDef(PolygonOffset),
 	MethodDef(PolygonStipple),
 	MethodDef(PopAttrib),
+	MethodDef(PopClientAttrib),
 	MethodDef(PopMatrix),
 	MethodDef(PopName),
 	MethodDef(PrioritizeTextures), 
 	MethodDef(PushAttrib),
+	MethodDef(PushClientAttrib),
 	MethodDef(PushMatrix),
 	MethodDef(PushName),
 	MethodDef(RasterPos2d),

Modified: trunk/blender/source/blender/python/api2_2x/doc/BGL.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/BGL.py	2007-10-17 08:23:08 UTC (rev 12266)
+++ trunk/blender/source/blender/python/api2_2x/doc/BGL.py	2007-10-17 09:51:13 UTC (rev 12267)
@@ -1213,6 +1213,12 @@
   @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 @@
   @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





More information about the Bf-blender-cvs mailing list