//void DrawLights() //{ // Gl.glLightfv(Gl.GL_LIGHT0, Gl.GL_POSITION, new float[]{-100.5f, 100.0f, 100.0f, 1.0f}); //} public void Render() { //DrawLights(); //LogFile.WriteLine("render"); //DrawLandscape(); // note to self: add Terrain perhaps? DrawEntities(); SelectionView.GetInstance().Render(); }
public override void DrawSelected() { IGraphicsHelper graphics = GraphicsHelperFactory.GetInstance(); graphics.SetMaterialColor(SelectionView.GetInstance().SelectionGridColor); graphics.PushMatrix(); graphics.Translate(pos); graphics.Rotate(rot); graphics.Scale(scale); graphics.DrawWireframeBox(SelectionView.GetInstance().SelectionGridNumLines); graphics.PopMatrix(); }