/// <summary> /// Initializes a new instance of the <see cref="RenderContextGL"/> class. /// </summary> public RenderContextGL() { RenderState = RenderStateGL.Create(); StateManager = new StateManager(); StateManager.Register <StateActiveFboGL, StateActiveFboGL>(new StateActiveFboGL()); StateManager.Register <StateActiveShaderGL, StateActiveShaderGL>(new StateActiveShaderGL()); StateManager.Register <IStateTyped <float>, States.ILineWidth>(new StateCommand <float>(GL.LineWidth, 1f)); }
/// <summary> /// Initializes a new instance of the <see cref="RenderContextGL"/> class. /// </summary> public RenderContextGL() { RenderState = RenderStateGL.Create(); }