Making opengl work (paint)faster
问题 im trying to paint 512*512 points , which each point uses its neighbors. for example glBegin(GL_TRIANGLE_STRIP); glVertex(x,y,z); glVertex(x+1,y,z); glVertex(x,y,z+1); glVertex(x+1,y,z+1); glEnd(); the problem is that it works quite slow , i know i can use VBO (working with CUDA aswell) but im not sure how to define the VBO to work with GL_TRIANGLE_STRIP and how to set the painting order of the vertices. 回答1: One way to use VBOs (there are variants, using the old Vertex Array API, directly