Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

GLModel() support in 2.0b7? (Newbie Question)

$
0
0
I'm porting a Sketch that used Andres' OpenGL implementation in Processing 1.5.  This sketch used the GLModel() call (cut/paste below) using TRIANGLE_FAN mode and DYNAMIC usage.  Is there core support for this now?  Any suggestions on porting this to 2.0b7?

     //GLModel(processing.core.PApplet parent, int numVert, int mode, int usage) 
     //This class holds a 3D model composed of vertices, normals, colors (per vertex) 
     //and texture coordinates (also per vertex). All this data is stored in 
     //Vertex Buffer Objects (VBO) for fast access. 
     //
     //Creates an instance of GLModel with the specified parameters: 
     //       number of vertices, 
     //       mode to draw the vertices (as points, sprites, lines, etc) and 
     //       usage (dynamic if they will change frequently or stream if they will change at every frame).

Viewing all articles
Browse latest Browse all 1768

Trending Articles