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

            m_RenderState = RenderStates.Default;
        }
예제 #2
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     foreach (var view in _views)
     {
         target.Draw(view, states);
     }
 }
예제 #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);
 }
예제 #4
0
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Draws the widget on the render target
 /// </summary>
 ///
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates states)
 {
 }
예제 #5
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     target.Draw(_score, states);
 }
예제 #6
0
 public override void Draw(SFML.Graphics.RenderTarget Target, Transform Transform)
 {
     Transform.Translate(Position);
     _Back.Draw(Target, Transform);
     _Knob.Draw(Target, Transform);
 }