Example #1
0
        public RenderTarget(SFML.Graphics.RenderTarget renderTarget)
        {
            this.renderTarget = renderTarget;
            m_VertexCache = new Vertex[CacheSize];

            m_RenderState = RenderStates.Default;
        }
Example #2
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     foreach (var view in _views)
     {
         target.Draw(view, states);
     }
 }
Example #3
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     _score.DisplayedString = $"Score: {_gameplayState.Score}";
     target.Draw(_background);
     target.Draw(new WorldView(_gameplayState.World));
     target.Draw(new TerminoView(_gameplayState.World.CurrentPiece));
     target.Draw(_score);
 }
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Draws the widget on the render target
 /// </summary>
 ///
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates states)
 {
 }
Example #5
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     target.Draw(_score, states);
 }
Example #6
0
 public override void Draw(SFML.Graphics.RenderTarget Target, Transform Transform)
 {
     Transform.Translate(Position);
     _Back.Draw(Target, Transform);
     _Knob.Draw(Target, Transform);
 }