/// <summary> /// Add sprite to render /// </summary> /// <param name="texture">Texture</param> /// <param name="rect">Rectangle</param> /// <param name="gfxRect">Gfx rectangle</param> public static void AddSpriteToRender( Texture texture, Rectangle rect, Rectangle gfxRect, Color color, SpriteBlendMode blendMode) { sprites.Add( new SpriteToRender(texture, rect, gfxRect, color, blendMode)); }
/// <summary> /// Add sprite to render /// </summary> /// <param name="texture">Texture</param> /// <param name="rect">Rectangle</param> /// <param name="gfxRect">Gfx rectangle</param> public static void AddSpriteToRender( Texture texture, Rectangle rect, Rectangle gfxRect) { sprites.Add(new SpriteToRender(texture, rect, gfxRect, Color.White)); }
/// <summary> /// Create sprite to render /// </summary> /// <param name="setTex">Set tex</param> /// <param name="setRect">Set rectangle</param> /// <param name="setPixelRect">Set pixel rectangle</param> /// <param name="setRotation">Set rotation</param> /// <param name="setRotationPoint">Set rotation point</param> public SpriteToRender(Texture setTex, Rectangle setRect, Rectangle setPixelRect, float setRotation, Vector2 setRotationPoint) { texture = setTex; rect = setRect; pixelRect = setPixelRect; rotation = setRotation; rotationPoint = setRotationPoint; }
/// <summary> /// Create sprite to render /// </summary> /// <param name="setTex">Set tex</param> /// <param name="setRect">Set rectangle</param> /// <param name="setPixelRect">Set pixel rectangle</param> /// <param name="setColor">Set color</param> /// <param name="alphaMode">Alpha mode</param> public SpriteToRender(Texture setTex, Rectangle setRect, Rectangle setPixelRect, Color setColor, SpriteBlendMode setBlendMode) { texture = setTex; rect = setRect; pixelRect = setPixelRect; color = setColor; blendMode = setBlendMode; }
/// <summary> /// Create sprite to render /// </summary> /// <param name="setTexture">Set texture</param> /// <param name="setRect">Set rectangle</param> /// <param name="setPixelRect">Set source rectangle</param> /// <param name="setColor">Set color</param> public SpriteToRender(Texture setTexture, Rectangle setRect, Rectangle setPixelRect, Color setColor) { texture = setTexture; rect = setRect; pixelRect = setPixelRect; color = setColor; }
/// <summary> /// Add sprite to render /// </summary> /// <param name="tex">Tex</param> /// <param name="rect">Rectangle</param> /// <param name="pixelRect">Pixel rectangle</param> /// <param name="rotation">Rotation</param> public static void AddSpriteToRender(Texture tex, Rectangle rect, Rectangle pixelRect, float rotation, Vector2 rotationPoint) { sprites.Add(new SpriteToRender( tex, rect, pixelRect, rotation, rotationPoint)); }