Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void drawLine(double x1, double y1, double x2, double y2, int thickness){
- //GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
- //GL11.glEnable(GL11.GL_BLEND);
- GL11.glLineWidth(thickness);
- GL11.glColor3f(0, 0, 0);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawing(GL11.GL_LINES);
- tessellator.addVertex(x1, y1, 0);
- tessellator.addVertex(x2, y2, 0);
- tessellator.draw();
- System.out.println("Drawing lines at: " + x1 + ", " + y1 + ", " + x2 + ", " + y2);
- //GL11.glDisable(GL11.GL_BLEND);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement