本文整理汇总了C#中TomShane.Draw方法的典型用法代码示例。如果您正苦于以下问题:C# TomShane.Draw方法的具体用法?C# TomShane.Draw怎么用?C# TomShane.Draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TomShane
的用法示例。
在下文中一共展示了TomShane.Draw方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawControl
protected override void DrawControl(TomShane.Neoforce.Controls.Renderer renderer, Microsoft.Xna.Framework.Rectangle rect, Microsoft.Xna.Framework.GameTime gameTime)
{
Color color = Color.White;
color.A = imageOpacity;
base.DrawControl(renderer, rect, gameTime);
renderer.Draw(image, rect, color);
}
示例2: DrawControl
protected override void DrawControl(TomShane.Neoforce.Controls.Renderer renderer,
Rectangle rect, GameTime gameTime)
{
renderer.Draw(BackGroundTexture, rect, new Color(0.0f, 0.0f, 0.0f, 0.6f));
}
示例3: DrawControl
protected override void DrawControl(TomShane.Neoforce.Controls.Renderer renderer, Microsoft.Xna.Framework.Rectangle rect, Microsoft.Xna.Framework.GameTime gameTime)
{
if (m_currentTool == Tool.ROAD_TOOL)
renderer.Draw(m_roadToolIcon, rect, Color.White);
else if (m_currentTool == Tool.ERASE_TOOL)
{
renderer.Draw(m_eraserToolIcon, rect, Color.White);
}
else if (m_currentTool == Tool.PAINT_TOOL)
{
renderer.Draw(m_paintToolIcon, rect, Color.White);
Rectangle rect2 = rect;
rect2.Width = (int)(rect2.Width*0.5f);
rect2.Height = (int)(rect2.Height * 0.5f);
renderer.SpriteBatch.Draw(m_tileMapIcon, rect2, m_tileMapIconRectangle, Color.White);
}
else
{
}
}
示例4: DrawControl
protected override void DrawControl(TomShane.Neoforce.Controls.Renderer renderer,
Rectangle rect, GameTime gameTime)
{
renderer.Draw(CanvasTexture, rect, Color.White);
}