public static void Render(Camera camera) { GL.PushMatrix(); float[] camPos = camera.GetPosition(); GL.Translate(camPos[0] + xOffset, camPos[1] + yOffset, camPos[2] + zOffset); currEnv.Render(); GL.PopMatrix(); }
public void Render() { GL.PushMatrix(); //model.Render(); /** * Factory * _____________ * |_F_|_M_|_F_| * |_H_| |_H_| * * F = full * H = half * M = full + robot part * */ full.Render(); /* Full (Left) */ GL.Translate(1.0f, 0.0f, 0.0f); full.Render(); /* Full (Middle) */ GL.Translate(1.0f, 0.0f, 0.0f); full.Render(); /* Full (Right) */ GL.Translate(-2.0f, 0.0f, 1.0f); half.Render(); /* Half (left) */ GL.Translate(2.0f, 0.0f, 0.0f); half.Render(); /* Half (Right) */ GL.Translate(-2.0f, 0.0f, -1.0f); if (robotPart != null) { GL.Translate(1.0f, 1.0f, 0.0f); robotPart.RenderAll(); GL.Translate(-1.0f, -1.0f, 0.0f); } GL.PopMatrix(); }