Skip to content

Instantly share code, notes, and snippets.

View dmillerw's full-sized avatar

Dylan Miller dmillerw

View GitHub Profile
public static void drawLine2D (Vector2f p1, Vector2f p2)
{
glColor4f ( SPColor.x,SPColor.y,SPColor.z,SPColor.w );
glPushMatrix();
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawing(GL_LINE_STRIP);
tessellator.addVertex(SPLeft + p1.x, SPTop + p1.y, 0);
tessellator.addVertex(SPLeft + p2.x, SPTop + p2.y, 0);
tessellator.draw();
glPopMatrix();