[PyOpenGL-Users] PyOpenGL Deprecation & New Methods
Brought to you by:
mcfletch
From: Prashant S. <ani...@ya...> - 2009-12-10 07:12:12
|
Hi, Are there any docs, article available for the deprecated function equivalent in 3.x api. Converting old school code completely using new api would be difficult with out good docs and references. For example glEnableClientState(GL_COLOR_ARRAY) glEnableClientState(GL_VERTEX_ARRAY) glColorPointer(4, GL_FLOAT, 0, self.colors) glVertexPointer(2, GL_FLOAT, 0, self.vertices) glPushMatrix() glTranslatef(self.x, self.y, 0) # glDrawArrays(GL_QUADS, 0, 4) glPopMatrix() # Disable vertex arrays glDisableClientState(GL_VERTEX_ARRAY) glDisableClientState(GL_COLOR_ARRAY) This is new way to draw quads using array method but glPushMatrix, glPopMatrix, glTranslate & glColor has been deprecated. Prashant The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ |