C# Class Project290.Rendering.TextureStatic

This is a static public class for storing and receiving static Texture2Ds from ImageType enums.
Show file Open project: scastle/Solitude Class Usage Examples

Public Methods

Method Description
Get ( string imageType ) : Microsoft.Xna.Framework.Graphics.Texture2D

Gets the specified image type, and returns the corresponding Texture2D.

GetOrigin ( string imageType ) : Vector2

Gets the origin of the image.

Load ( string imageName, string directory ) : void

Loads a Texture2D, and matches it to the specified image name for easy use later.

Method Details

Get() public static method

Gets the specified image type, and returns the corresponding Texture2D.
public static Get ( string imageType ) : Microsoft.Xna.Framework.Graphics.Texture2D
imageType string Type of the image.
return Microsoft.Xna.Framework.Graphics.Texture2D

GetOrigin() public static method

Gets the origin of the image.
public static GetOrigin ( string imageType ) : Vector2
imageType string Type of the image.
return Vector2

Load() public static method

Loads a Texture2D, and matches it to the specified image name for easy use later.
public static Load ( string imageName, string directory ) : void
imageName string
directory string
return void