本文整理汇总了C#中SharpDX.Draw方法的典型用法代码示例。如果您正苦于以下问题:C# SharpDX.Draw方法的具体用法?C# SharpDX.Draw怎么用?C# SharpDX.Draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpDX
的用法示例。
在下文中一共展示了SharpDX.Draw方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Render
public override void Render(SharpDX.Toolkit.Graphics.SpriteBatch _spriteBatch)
{
_spriteBatch.Draw(tex, new RectangleF(gridx * 32, gridy * 32, width * 32, height * 32), Color.White);
}
示例2: Render
public override void Render(SharpDX.Direct3D11.DeviceContext devCont)
{
Device dev = Engine.g_device;
/// Clear the layout to the engine
devCont.InputAssembler.InputLayout = null;
/// set the type of primitive(triangleList)
devCont.InputAssembler.PrimitiveTopology = PrimitiveTopology.PointList;
/// set the position of the mesh base on the world matrix
/// all the change pass to the shader
m_shader.SetThePositions(m_WorldMatrix);
/// Execute all the passes of the shader
m_shader.Execute(devCont);
/// Render
devCont.Draw(m_numParticles, 0);
}