- glLoadIdentity();
- glClearColor(0.8f, 0.8f, 0.9f, 1.0f);
- glEnable(GL_DEPTH_TEST);
- glEnable(GL_LIGHTING);
- glEnable(GL_LIGHT0);
- glLight(GL_LIGHT0, GL_POSITION, BufferHelper.asFlippedFloatBuffer(new float[]{1, 5, 2, 0}));
- glLight(GL_LIGHT0, GL_DIFFUSE, BufferHelper.asFlippedFloatBuffer(new float[]{1, 1, 1, 1f}));
- glLight(GL_LIGHT0, GL_AMBIENT, BufferHelper.asFlippedFloatBuffer(new float[]{1, 1, 1, 1f}));
- glMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, BufferHelper.asFlippedFloatBuffer(new float[]{1f, 1f, 1f, 1}));
- glMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, BufferHelper.asFlippedFloatBuffer(new float[]{0f, 0f, 0f, 1}));
- glMaterial(GL_FRONT_AND_BACK, GL_EMISSION, BufferHelper.asFlippedFloatBuffer(new float[]{0, 0, 0, 1}));
- glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 0f);
- glMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, BufferHelper.asFlippedFloatBuffer(new float[]{0, 0, 0, 1}));
- //rendern der Displayliste