From ea48ac6ecdd69a4c3e033195d2da8f7e260370dd Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 29 Sep 2011 09:01:58 +0900 Subject: [PATCH] implement optimize --- examples/opengl/vertexarray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/opengl/vertexarray.py b/examples/opengl/vertexarray.py index 4dc51c3..1c3b502 100644 --- a/examples/opengl/vertexarray.py +++ b/examples/opengl/vertexarray.py @@ -2,6 +2,7 @@ # coding: utf-8 from OpenGL.GL import * +import numpy ''' 頂点配列 @@ -119,7 +120,6 @@ class IndexedVertexArray(object): glDisableClientState(GL_VERTEX_ARRAY) def optimize(self): - pass - #for v in self.vertexArrayMap.values(): - # v.vertices=numpy.array(v.vertices, 'f') + self.vertices=numpy.array(self.vertices, 'f') + self.uvlist=numpy.array(self.uvlist, 'f') -- 2.11.0