C# Class Project290.Rendering.TextureStatic

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

GetOrigin() public static méthode

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

Load() public static méthode

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
Résultat void