@@ -0,0 +1,1232 @@
+package net.steel3d.util;%0A%0Aimport org.lwjgl.opengl.GL11;%0Aimport org.lwjgl.util.vector.Vector3f;%0A%0Aimport net.steel3d.graphics.Face;%0Aimport net.steel3d.graphics.Mesh;%0A%0Apublic class MeshRenderer extends Object3%7B%0A%0A%09public Mesh mesh;%0A%09%0A%09public MeshRenderer(Mesh mesh,Transform transform) %7B%0A%09%09super(transform);%0A%09%09this.mesh = mesh;%0A%09%7D%0A%0A%09public void render()%7B%0A%09%09super.render();%0A%09%09Mesh model = mesh;%0A%09%09GL11.glPushMatrix();%0A%09%09GL11.glTranslatef(transform.position.x, transform.position.y, transform.position.z);%0A%09%09GL11.glBegin(GL11.GL_TRIANGLES);%0A%09%09for(Face face:model.faces)%7B%0A%09%09%09%0A%09%09%09Vector3f n1 = model.vectorNormals.get((int)face.normal.x -1);%09%0A%09%09%09GL11.glNormal3f(n1.x, n1.y, n1.z);%0A%09%09%09Vector3f v1 = model.vectors.get((int)face.vertex.x -1);%0A%09%09%09GL11.glVertex3f(v1.x, v1.y, v1.z);%0A%09%09%09%0A%09%09%09Vector3f n2 = model.vectorNormals.get((int)face.normal.y -1);%0A%09%09%09GL11.glNormal3f(n2.x, n2.y, n2.z);%0A%09%09%09Vector3f v2 = model.vectors.get((int)face.vertex.y -1);%0A%09%09%09GL11.glVertex3f(v2.x, v2.y, v2.z);%0A%09%09%09%0A%09%09%09Vector3f n3 = model.vectorNormals.get((int)face.normal.z -1);%0A%09%09%09GL11.glNormal3f(n3.x, n3.y, n3.z);%0A%09%09%09Vector3f v3 = model.vectors.get((int)face.vertex.z -1);%0A%09%09%09GL11.glVertex3f(v3.x, v3.y, v3.z);%0A%09%09%09%0A%09%09%7D%0A%09%09GL11.glEnd();%0A%09%09GL11.glPopMatrix();%0A%09%7D%0A%09%0A%7D%0A

Create MeshRenderer.java