Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1.         addGLObject(
  2.             GL.GL_LINES,
  3.             // vertices
  4.             FloatBuffer.wrap(new float[] {
  5.                 // x axis
  6.                 -20.0f, 0.0f, 0.0f, 1.0f,
  7.                  20.0f, 0.0f, 0.0f, 1.0f,
  8.                 // y axis
  9.                  0.0f, -20.0f, 0.0f, 1.0f,
  10.                  0.0f,  20.0f, 0.0f, 1.0f,
  11.                 // z axis
  12.                  0.0f, 0.0f, -20.0f, 1.0f,
  13.                  0.0f, 0.0f,  20.0f, 1.0f  
  14.             }),
  15.             // colors
  16.             FloatBuffer.wrap(new float[] {
  17.                 1.0f, 0.5f, 1.0f, 0.0f,
  18.                 222.0f, 0.0f, 0.0f, 1.0f,
  19.                 0.5f, 1.0f, 0.5f, 0.0f,
  20.                 0.0f, 0.0f, 0.0f, 50.0f,
  21.                 1.0f, 1.0f, 0.5f, 0.0f,
  22.                 0.0f, 0.0f, 0.0f, 100.0f
  23.             })
  24.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement