FlatRedBall.Graphics.Texture.AtlasedTexture.AtlasedTexture C# (CSharp) Method

AtlasedTexture() public method

public AtlasedTexture ( string name, Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle sourceRect, Vector2 size, Vector2 pivotPoint, bool isRotated ) : System.Collections.Specialized
name string
texture Microsoft.Xna.Framework.Graphics.Texture2D
sourceRect Microsoft.Xna.Framework.Rectangle
size Microsoft.Xna.Framework.Vector2
pivotPoint Microsoft.Xna.Framework.Vector2
isRotated bool
return System.Collections.Specialized
        public AtlasedTexture(string name, Texture2D texture, Rectangle sourceRect, Vector2 size, Vector2 pivotPoint, bool isRotated)
        {
            Name = name;
            Texture = texture;
            SourceRectangle = sourceRect;
            Size = size;
            Origin = isRotated ? new Vector2(sourceRect.Width * (1 - pivotPoint.Y), sourceRect.Height * pivotPoint.X)
                                    : new Vector2(sourceRect.Width * pivotPoint.X, sourceRect.Height * pivotPoint.Y);
            IsRotated = isRotated;
        }
AtlasedTexture