C# Класс Project290.Rendering.TextureStatic

This is a static public class for storing and receiving static Texture2Ds from ImageType enums.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Get() публичный статический Метод

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.
Результат Microsoft.Xna.Framework.Graphics.Texture2D

GetOrigin() публичный статический Метод

Gets the origin of the image.
public static GetOrigin ( string imageType ) : Vector2
imageType string Type of the image.
Результат Vector2

Load() публичный статический Метод

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
Результат void