Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RenderContextGL"/> class.
 /// </summary>
 public RenderContextGL()
 {
     RenderState = RenderStateGL.Create();
 }