Guest User

Untitled

a guest
Oct 16th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. // create new mesh with desired maximum number of points
  2. PathMesh mesh = new PathMesh( 500 );
  3.  
  4. // StrokePoints are defined by an x,y position and a width
  5. StrokePoint point = new StrokePoint( x, y, width );
  6.  
  7. // add points when you want to
  8. mesh.addPoint( point );
  9.  
  10. // when you render, it will re-evaluate the point list
  11. // if new points were added since previous render call
  12. mesh.render( shader, GL_TRIANGLES );
Add Comment
Please, Sign In to add comment