C# 클래스 Myre.Graphics.Quad

파일 보기 프로젝트 열기: TomGillen/Myre 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( ) : void

Draws this instance.

Draw ( Effect effect ) : void
Draw ( Myre.Graphics.Materials.Material material, BoxedValueStore parameters ) : void
Quad ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : System

Initializes a new instance of the Quad class.

SetPosition ( Rectangle screenCoordinates, float depth ) : void
SetPosition ( System.Numerics.Vector2 topLeft, System.Numerics.Vector2 bottomRight, float depth ) : void

Sets the poisition of this quad.

SetPosition ( float topLeftX = -1, float topLeftY = 1, float bottomRightX = 1, float bottomRightY = -1, float depth ) : void

비공개 메소드들

메소드 설명
ToDeviceCoordinate ( float x, float y, System.Numerics.Vector2 resolution ) : System.Numerics.Vector2

메소드 상세

Draw() 공개 메소드

Draws this instance.
public Draw ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( Effect effect ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
리턴 void

Draw() 공개 메소드

public Draw ( Myre.Graphics.Materials.Material material, BoxedValueStore parameters ) : void
material Myre.Graphics.Materials.Material
parameters BoxedValueStore
리턴 void

Quad() 공개 메소드

Initializes a new instance of the Quad class.
public Quad ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : System
device Microsoft.Xna.Framework.Graphics.GraphicsDevice The graphics device.
리턴 System

SetPosition() 공개 메소드

public SetPosition ( Rectangle screenCoordinates, float depth ) : void
screenCoordinates Rectangle
depth float
리턴 void

SetPosition() 공개 메소드

Sets the poisition of this quad.
public SetPosition ( System.Numerics.Vector2 topLeft, System.Numerics.Vector2 bottomRight, float depth ) : void
topLeft System.Numerics.Vector2 The top left corner, in normalised device coordinates.
bottomRight System.Numerics.Vector2 The bottom right corner, in normalised device coordinates.
depth float The depth.
리턴 void

SetPosition() 공개 메소드

public SetPosition ( float topLeftX = -1, float topLeftY = 1, float bottomRightX = 1, float bottomRightY = -1, float depth ) : void
topLeftX float
topLeftY float
bottomRightX float
bottomRightY float
depth float
리턴 void