Skip to content
Snippets Groups Projects
Commit a3b2a64e authored by Johannes Eder's avatar Johannes Eder
Browse files

enabled anti aliasing, added new schedule notification

parent ef49b779
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ public class Graph3DViewObject extends ViewObjectBase {
/** {@inheritDoc} */
@Override
public void renderObject(Camera c) {
renderCoordSys(graph.getCoordinateSystem());
setColor(WHITE);
for(GraphPoint3D p : graph.getPointsList()) {
......
......@@ -41,6 +41,8 @@ import static org.lwjgl.opengl.GL11.GL_NICEST;
import static org.lwjgl.opengl.GL11.GL_NORMALIZE;
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA;
import static org.lwjgl.opengl.GL11.GL_PERSPECTIVE_CORRECTION_HINT;
import static org.lwjgl.opengl.GL11.GL_POLYGON_SMOOTH;
import static org.lwjgl.opengl.GL11.GL_POLYGON_SMOOTH_HINT;
import static org.lwjgl.opengl.GL11.GL_POSITION;
import static org.lwjgl.opengl.GL11.GL_PROJECTION;
import static org.lwjgl.opengl.GL11.GL_QUADRATIC_ATTENUATION;
......@@ -156,6 +158,10 @@ public class GLPrimitives {
// return GL state to model matrix
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
// enable anti aliasing
GL11.glEnable(GL11.GL_BLEND);
glEnable(GL_POLYGON_SMOOTH);
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
}
/** Initializes GL properties for 2D rendering. */
......@@ -171,6 +177,7 @@ public class GLPrimitives {
glOrtho(0, width, height, 0, 1, -1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment