本文整理汇总了C#中SFML.Draw方法的典型用法代码示例。如果您正苦于以下问题:C# SFML.Draw方法的具体用法?C# SFML.Draw怎么用?C# SFML.Draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SFML
的用法示例。
在下文中一共展示了SFML.Draw方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1:
void Drawable.Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates states)
{
// apply the transform
states.Transform *= Transform.Identity;
// apply the tileset texture
states.Texture = m_tileset;
// draw the vertex array
target.Draw(m_vertices, states);
}
示例2: Render
public void Render(SFML.Graphics.RenderWindow renderWindow)
{
if (texture is FramedTexture)
{
FramedTexture framed = (FramedTexture)texture;
framed.Position = position;
framed.Render(renderWindow);
}
else
renderWindow.Draw(sprite);
}
示例3: draw
public override void draw(Framework.Utilities.GameTime time, SFML.Graphics.RenderWindow window)
{
window.Draw(backGround);
contentManager.draw(time, window);
lightLayer.draw(window);
mainMenu.draw(time, window);
}
示例4: draw
public override void draw(Utilities.GameTime time, SFML.Graphics.RenderWindow window)
{
if (hasBackground)
Draw.fillRectangle(window, bounds, BackGroudColor);
window.Draw(Title);
foreach (MenuButton b in buttons)
b.draw(window);
}
示例5: Show
public void Show(SFML.Graphics.RenderWindow window)
{
window.Draw(_sprite);
}
示例6: DrawCurrent
/// <summary>
/// Dibuja el PlayerShip
/// </summary>
/// <param name="rt">Donde se va a dibujar. Suele ser casi siempre una renderWindow, aunque podría ser una renderTexture</param>
/// <param name="rs">Estados usados para dibujar</param>
override protected void DrawCurrent(SFML.Graphics.RenderTarget rt, SFML.Graphics.RenderStates rs)
{
// en el destino (rt) dibujamos el sprite con un estado determinado (rs)
rt.Draw(_sprite,rs);
}
示例7: draw
public override void draw(Framework.Utilities.GameTime time, SFML.Graphics.RenderWindow window)
{
window.Draw(sp);
contentManager.draw(time, window);
if (enabled)
lightLayer.draw(window);
}