Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1.     public static void drawLine(double x1, double y1, double x2, double y2, int thickness){
  2.         //GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
  3.         //GL11.glEnable(GL11.GL_BLEND);
  4.         GL11.glLineWidth(thickness);
  5.         GL11.glColor3f(0, 0, 0);
  6.         Tessellator tessellator = Tessellator.instance;
  7.         tessellator.startDrawing(GL11.GL_LINES);
  8.         tessellator.addVertex(x1, y1, 0);
  9.         tessellator.addVertex(x2, y2, 0);
  10.         tessellator.draw();
  11.         System.out.println("Drawing lines at: " + x1 + ", " + y1 + ", " + x2 + ", " + y2);
  12.         //GL11.glDisable(GL11.GL_BLEND);
  13.  
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement