Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- camera.applyTranslations();
- if (flatten) {
- glScalef(1, 0, 1);
- }
- // glEnable(GL_TEXTURE_2D);
- //glActive?exture(GL_TEXTURE0);
- // tex.bind();
- glCallList(heightmapDisplayList);
- glDisable(GL_CULL_FACE);
- Date d = new Date();
- long this_framerate_timestamp = d.getTime();
- // perform rotation transformations
- //double rotate_x = ((double)this_framerate_timestamp / 300.0) % 360.0;
- //double rotate_y = ((double)this_framerate_timestamp / 200.0) % 360.0;
- //double rotate_z = ((double)this_framerate_timestamp / 100.0) % 360.0;
- /* GL11.glRotated(
- 0,
- 1.0,
- 0.0,
- 0.0
- );*/
- //glPushMatrix();
- if (Keyboard.isKeyDown(Keyboard.KEY_LEFT))
- rotate++;
- // Matrix4f mat = new Matrix4f();
- //GL11.glTranslatef(0f, 0f, plus);
- //glTranslatef(0, 0, plus);
- glTranslatef(0, 0, plus);
- glRotatef(rotate, 0.f, 1.f, 0.f);
- glTranslatef(0, -0, -plus);
- //glRotatef(rotate, 0, 1, 0);
- //glTranslatef(0, 0, plus);
- // glRotatef(rotate, 0, 1, 0);
- //GL11.glTranslatef(0f, 0f, -plus);
- if (Keyboard.isKeyDown(Keyboard.KEY_UP)){
- plus++;
- }
- //mat.translate(new Vector3f(0, 0, 1));
- glColor3f(0.4f, 0.27f, 0.17f);
- glDrawArrays(GL_TRIANGLES, 0, model.getFaces().size() * 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement