예제 #1
0
 /// <summary>
 /// Initializes a new OpenGLRenderer class.
 /// </summary>
 public OpenGLRenderer()
 {
     _renderContext     = new RenderContext();
     _graphicsDevice    = SGL.QueryComponents <GraphicsDevice>();
     _textEntityManager = new TextEntityManager();
     _window            = SGL.QueryComponents <RenderTarget>().Window;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new OpenGLRenderer class.
 /// </summary>
 public OpenGLRenderer()
 {
     _renderContext = new RenderContext();
     _graphicsDevice = SGL.QueryComponents<GraphicsDevice>();
     _textEntityManager = new TextEntityManager();
     _window = SGL.QueryComponents<RenderTarget>().Window;
 }