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

Renders a Sprite on the screen. The owner Entity must contain the Sprite to be drawn, plus a Transform2D.
상속: Drawable2D
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Draw ( System.TimeSpan gameTime ) : void

Allows to perform custom drawing.

This method will only be called if all the following points are true: The parent of the owner Entity of the Drawable cascades its visibility to its children and it is visible. The Drawable is active. The owner Entity of the Drawable is active and visible.

SpriteRenderer ( ) : System

Initializes a new instance of the SpriteRenderer class.

SpriteRenderer ( Type layerType, AddressMode samplerMode = AddressMode.LinearClamp ) : System

Initializes a new instance of the SpriteRenderer class.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

Sets the default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

메소드 상세

DefaultValues() 보호된 메소드

Sets the default values
protected DefaultValues ( ) : 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

Draw() 공개 메소드

Allows to perform custom drawing.
This method will only be called if all the following points are true: The parent of the owner Entity of the Drawable cascades its visibility to its children and it is visible. The Drawable is active. The owner Entity of the Drawable is active and visible.
public Draw ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The elapsed game time.
리턴 void

SpriteRenderer() 공개 메소드

Initializes a new instance of the SpriteRenderer class.
public SpriteRenderer ( ) : System
리턴 System

SpriteRenderer() 공개 메소드

Initializes a new instance of the SpriteRenderer class.
public SpriteRenderer ( Type layerType, AddressMode samplerMode = AddressMode.LinearClamp ) : System
layerType System.Type /// Layer type (available at ). /// Example: new SpriteRenderer(DefaultLayers.Alpha) ///
samplerMode AddressMode /// Sampler mode /// Example: new SpriteRenderer(DefaultLayers.Alpha) ///
리턴 System