C# 클래스 Project290.Rendering.TextureStatic

This is a static public class for storing and receiving static Texture2Ds from ImageType enums.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 메소드들

메소드 설명
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