C# Class Pokemon3D.UI.TextureProjectionQuad

Draws a projection of a texture on a 3D quad.
Datei anzeigen Open project: nilllzz/Pokemon3D

Public Methods

Method Description
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

Private Methods

Method Description
CalculateQuadCorners ( ) : void
FillVertices ( ) : void
Project ( Vector3 source, Matrix projection, Matrix view, Matrix world ) : Vector3
SetupEffect ( ) : void
WithinEpsilon ( float a, float b ) : bool

Method Details

AdjustToScreen() public method

public AdjustToScreen ( Point p ) : Point
p Point
return Point

AdjustToScreen() public method

public AdjustToScreen ( Polygon polygon ) : Polygon
polygon Polygon
return Polygon

AdjustToScreen() public method

public AdjustToScreen ( Vector2 v ) : Vector2
v Vector2
return Vector2

GetProjected() public method

public GetProjected ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

ProjectPoint() public method

public ProjectPoint ( Point source ) : Point
source Point
return Point

ProjectRectangle() public method

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

ProjectVector2() public method

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

TextureProjectionQuad() public method

public TextureProjectionQuad ( ) : System
return System

TextureProjectionQuad() public method

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