public static void DrawGump(Graphic graphic, Hue hue, int x, int y, int width, int height, bool ispartial) { Texture2D texture = FileManager.Gumps.GetTexture(graphic); if (texture == null) { return; } Vector3 huev = Vector3.Zero; if (hue != 0) { ShaderHuesTraslator.GetHueVector(ref huev, hue, ispartial, 0); } Engine.Batcher.Draw2D(texture, x, y, width, height, huev); }
public static void DrawLandArt(Graphic graphic, Hue hue, int x, int y) { Texture2D th = FileManager.Art.GetLandTexture(graphic); if (th == null) { return; } Vector3 huev = Vector3.Zero; if (hue != 0) { ShaderHuesTraslator.GetHueVector(ref huev, hue); } //Engine.Batcher.DrawSprite(th, ) }
public static void DrawLand(Land land, Hue hue, int x, int y, SpriteVertex[] vertices) { Graphic id = land.Graphic; Texture2D th = FileManager.Textmaps.GetTexture(id); if (th == null) { DrawLandArt(id, hue, x, y); } else { Vector3 huev = Vector3.Zero; if (hue != 0) { ShaderHuesTraslator.GetHueVector(ref huev, hue); } Engine.Batcher.DrawSprite(th, vertices); } }