public Draw ( RenderTarget target, |
||
target | RenderTarget | Render target to draw to |
states | Current render states | |
리턴 | void |
public void WriteDebug(string content, Vector2f position, RenderTarget target) { var text = new SFML.Graphics.Text(content, _debugFont) { Position = position, FillColor = Color.Green, CharacterSize = 8, Scale = Scale, OutlineColor = Color.Black, OutlineThickness = 1.0f }; text.Draw(target, RenderStates.Default); }
/// <summary> /// Draws a string. /// </summary> public void DrawString(Text str, Color color ) { Vector2f oldPos = str.Position; str.Position = oldPos +Translation; str.Position -= new Vector2f( str.GetLocalBounds().Left, str.GetLocalBounds().Top ); Color oldCol = str.Color; str.Color = ActualColor(color); str.Draw(myTarget, RenderStates.Default); str.Color = oldCol; str.Position = oldPos; }
public void Draw(SFML.Graphics.Text text, RenderTarget target) { text.Draw(target, RenderStates.Default); }
public void Display(RenderTarget context) { _text.Draw(context, _state); }