C# 클래스 Pokemon3D.UI.TextureProjectionQuad

Draws a projection of a texture on a 3D quad.
파일 보기 프로젝트 열기: nilllzz/Pokemon3D

공개 메소드들

메소드 설명
AdjustToScreen ( Point p ) : Point
AdjustToScreen ( Polygon polygon ) : Polygon
AdjustToScreen ( Vector2 v ) : Vector2
GetProjected ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
ProjectPoint ( Point source ) : Point
ProjectRectangle ( Rectangle rectangle ) : Polygon
ProjectVector2 ( Vector2 source ) : Vector2

Projects a Vector2 from screen to world space.

TextureProjectionQuad ( ) : System
TextureProjectionQuad ( int width, int height ) : System

비공개 메소드들

메소드 설명
CalculateQuadCorners ( ) : void
FillVertices ( ) : void
Project ( Vector3 source, Matrix projection, Matrix view, Matrix world ) : Vector3
SetupEffect ( ) : void
WithinEpsilon ( float a, float b ) : bool

메소드 상세

AdjustToScreen() 공개 메소드

public AdjustToScreen ( Point p ) : Point
p Point
리턴 Point

AdjustToScreen() 공개 메소드

public AdjustToScreen ( Polygon polygon ) : Polygon
polygon Polygon
리턴 Polygon

AdjustToScreen() 공개 메소드

public AdjustToScreen ( Vector2 v ) : Vector2
v Vector2
리턴 Vector2

GetProjected() 공개 메소드

public GetProjected ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

ProjectPoint() 공개 메소드

public ProjectPoint ( Point source ) : Point
source Point
리턴 Point

ProjectRectangle() 공개 메소드

public ProjectRectangle ( Rectangle rectangle ) : Polygon
rectangle Microsoft.Xna.Framework.Rectangle
리턴 Polygon

ProjectVector2() 공개 메소드

Projects a Vector2 from screen to world space.
public ProjectVector2 ( Vector2 source ) : Vector2
source Vector2
리턴 Vector2

TextureProjectionQuad() 공개 메소드

public TextureProjectionQuad ( ) : System
리턴 System

TextureProjectionQuad() 공개 메소드

public TextureProjectionQuad ( int width, int height ) : System
width int
height int
리턴 System