本文整理汇总了C#中PloobsEngine.SetSamplerStates方法的典型用法代码示例。如果您正苦于以下问题:C# PloobsEngine.SetSamplerStates方法的具体用法?C# PloobsEngine.SetSamplerStates怎么用?C# PloobsEngine.SetSamplerStates使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PloobsEngine
的用法示例。
在下文中一共展示了PloobsEngine.SetSamplerStates方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Drawn
/// <summary>
/// Normal Drawn Function.
/// </summary>
/// <param name="gt">The gt.</param>
/// <param name="obj">The obj.</param>
/// <param name="cam">The cam.</param>
/// <param name="lights">The lights.</param>
/// <param name="render">The render.</param>
public void Drawn(GameTime gt, PloobsEngine.SceneControl.IObject obj, PloobsEngine.Cameras.ICamera cam, System.Collections.Generic.IList<PloobsEngine.Light.ILight> lights, PloobsEngine.SceneControl.RenderHelper render)
{
if (first)
{
_terrainModel.Initialize(cam, render.device);
first = false;
}
if (_terrainModel.Effect is IEffectMatrices)
{
IEffectMatrices effectMatrices = (IEffectMatrices)_terrainModel.Effect;
effectMatrices.World = obj.WorldMatrix;
effectMatrices.View = cam.View;
effectMatrices.Projection = cam.Projection;
}
render.SetSamplerStates(SamplerState.LinearWrap, 6);
_terrainModel.Draw();
render.SetSamplerStates(ginfo.SamplerState, 6);
}