Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void init(GLAutoDrawable drawable)
- {
- GL gl = drawable.getGL();
- gl.glClearColor(1.0f, 1.0f, 1.0f, 0.0f);
- if (constellationColor == "Red")
- {
- gl.glColor3f(139f, 0f, 0f);
- }
- else if (constellationColor == "Green")
- {
- gl.glColor3f(0f, 100f, 0f);
- }
- else if (constellationColor == "Blue")
- {
- gl.glColor3f(0f, 0f, 139f);
- }
- else
- {
- gl.glColor3f(0f, 0f, 0f);
- }
- gl.glPointSize(pointSize);
- gl.glMatrixMode(GL.GL_PROJECTION);
- gl.glLoadIdentity();
- glu.gluOrtho2D(0.0, 640.0, 0.0, 480.0);
- }
Add Comment
Please, Sign In to add comment