C# 클래스 WaveEngine.Components.Graphics2D.Sprite

Represents a 2D Image.
상속: Component
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
disposed bool
texture Texture

Private Properties

프로퍼티 타입 설명
InitMaterial void
LoadTexture void
RefreshMaterialFromPath void
RefreshTexture void
UnloadTexture void

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Sprite ( ) : System

Initializes a new instance of the Sprite class based on a content file.

Sprite ( Material material ) : System

Initializes a new instance of the Sprite class based on a content file.

Sprite ( Texture texture ) : System

Initializes a new instance of the Sprite class based on a texture. See Texture for more information.

Sprite ( string texturePath ) : System

Initializes a new instance of the Sprite class based on a content file.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

The default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

UpdateSourceRectangle ( ) : void

The update source rectangle.

비공개 메소드들

메소드 설명
InitMaterial ( ) : void

Init material

LoadTexture ( ) : void

Load texture

RefreshMaterialFromPath ( ) : void

Init material

RefreshTexture ( ) : void

Refresh the sprite texture

UnloadTexture ( ) : void

Unload texture

메소드 상세

DefaultValues() 보호된 메소드

The default values
protected DefaultValues ( ) : void
리턴 void

Dispose() 공개 메소드

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged resources. ///
리턴 void

Initialize() 보호된 메소드

Performs further custom initialization for this instance.
protected Initialize ( ) : void
리턴 void

Sprite() 공개 메소드

Initializes a new instance of the Sprite class based on a content file.
public Sprite ( ) : System
리턴 System

Sprite() 공개 메소드

Initializes a new instance of the Sprite class based on a content file.
Material can not be null.
public Sprite ( Material material ) : System
material Material The material used to render the sprite.
리턴 System

Sprite() 공개 메소드

Initializes a new instance of the Sprite class based on a texture. See Texture for more information.
Texture can not be null.
public Sprite ( Texture texture ) : System
texture Texture The texture.
리턴 System

Sprite() 공개 메소드

Initializes a new instance of the Sprite class based on a content file.
TexturePath can not be null.
public Sprite ( string texturePath ) : System
texturePath string The texture path to the content file.
리턴 System

UpdateSourceRectangle() 보호된 메소드

The update source rectangle.
Sprite has been disposed.
protected UpdateSourceRectangle ( ) : void
리턴 void

프로퍼티 상세

disposed 보호되어 있는 프로퍼티

The disposed
protected bool disposed
리턴 bool

texture 보호되어 있는 프로퍼티

The sprite texture
protected Texture texture
리턴 Texture