示例#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;
 }