package blue.lapis.lapitar2.slave.render;

import org.lwjgl.opengl.GL11;

import blue.lapis.lapitar2.Lapitar;


public class HeadRenderer extends Renderer {
	private Cube helm, head;
	@Override
	protected void initCubes() {
		Lapitar.log.info("initCubes");
		cubes.clear();
		int textureId = GL11.glGenTextures();
		helm = new Cube(textureId);
		helm.scaleX = helm.scaleY = helm.scaleZ = 1.1f;
		helm.z = -50;
		helm.y = 0.25f;
		helm.rotX = 25f;
		helm.rotY = 45f;
		addCube(helm);
		head = new Cube(textureId);
		head.z = -50.05f;
		head.y = 0.30f;
		head.rotX = 25f;
		head.rotY = 45f;
		addCube(head);
	}
	
}

@@ -40,39 +40,8 @@
 r;%0A%0A
-import org.lwjgl.opengl.GL11;%0A%0A
 impo
@@ -72,16 +72,16 @@
 apitar;%0A
+
 %0A%0Apublic
@@ -240,48 +240,8 @@
 ();%0A
-%09%09int textureId = GL11.glGenTextures();%0A
 %09%09he
@@ -250,33 +250,24 @@
  = new Cube(
-textureId
 );%0A%09%09helm.sc
@@ -320,17 +320,16 @@
 m.z = -5
-0
 ;%0A%09%09helm
@@ -417,17 +417,8 @@
 ube(
-textureId
 );%0A%09
@@ -429,17 +429,16 @@
 d.z = -5
-0
 .05f;%0A%09%09

Set the head position to a sensible value