Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create new mesh with desired maximum number of points
- PathMesh mesh = new PathMesh( 500 );
- // StrokePoints are defined by an x,y position and a width
- StrokePoint point = new StrokePoint( x, y, width );
- // add points when you want to
- mesh.addPoint( point );
- // when you render, it will re-evaluate the point list
- // if new points were added since previous render call
- mesh.render( shader, GL_TRIANGLES );
Add Comment
Please, Sign In to add comment