public RenderTarget(SFML.Graphics.RenderTarget renderTarget) { this.renderTarget = renderTarget; m_VertexCache = new Vertex[CacheSize]; m_RenderState = RenderStates.Default; }
public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states) { foreach (var view in _views) { target.Draw(view, states); } }
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) { }
public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states) { target.Draw(_score, states); }
public override void Draw(SFML.Graphics.RenderTarget Target, Transform Transform) { Transform.Translate(Position); _Back.Draw(Target, Transform); _Knob.Draw(Target, Transform); }