Ejemplo n.º 1
0
        internal void End(IntRect viewport, Matrix projectionMatrix)
        {
            if (!_begun)
            {
                throw new GlaivesException("End may not be called before Begin is called");
            }

            GL.PolygonMode(MaterialFace.Back, PolygonMode.Fill);

            GraphicsDeviceBase.Draw(viewport, _shaderProgram, _vertexArray, VertexArrayPosition, _vbo,
                                    _positionAttributeLocation, _colorAttributeLocation, _texCoordAttributeLocation,
                                    RenderProgram, projectionMatrix);

            _begun = false;
        }
Ejemplo n.º 2
0
 public Win32Game(GraphicsDeviceBase device)
     : base(device)
 {
 }