C# 클래스 Microsoft.Xna.Framework.Graphics.Viewport

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

Private Properties

프로퍼티 타입 설명
WithinEpsilon bool

공개 메소드들

메소드 설명
Project ( System.Vector3 source, System.Matrix projection, System.Matrix view, System.Matrix world ) : System.Vector3

Projects a Vector3 from world space into screen space.

ToString ( ) : string

Returns a String representation of this Viewport in the format: {X:[X] Y:[Y] Width:[Width] Height:[Height] MinDepth:[MinDepth] MaxDepth:[MaxDepth]}

Unproject ( System.Vector3 source, System.Matrix projection, System.Matrix view, System.Matrix world ) : System.Vector3

Unprojects a Vector3 from screen space into world space.

Viewport ( Rectangle bounds ) : System

Creates a new instance of Viewport struct.

Viewport ( int x, int y, int width, int height ) : System

Constructs a viewport from the given values. The MinDepth will be 0.0 and MaxDepth will be 1.0.

Viewport ( int x, int y, int width, int height, float minDepth, float maxDepth ) : System

Constructs a viewport from the given values.

비공개 메소드들

메소드 설명
WithinEpsilon ( float a, float b ) : bool

메소드 상세

Project() 공개 메소드

Projects a Vector3 from world space into screen space.
public Project ( System.Vector3 source, System.Matrix projection, System.Matrix view, System.Matrix world ) : System.Vector3
source System.Vector3 The to project.
projection System.Matrix The projection .
view System.Matrix The view .
world System.Matrix The world .
리턴 System.Vector3

ToString() 공개 메소드

Returns a String representation of this Viewport in the format: {X:[X] Y:[Y] Width:[Width] Height:[Height] MinDepth:[MinDepth] MaxDepth:[MaxDepth]}
public ToString ( ) : string
리턴 string

Unproject() 공개 메소드

Unprojects a Vector3 from screen space into world space.
public Unproject ( System.Vector3 source, System.Matrix projection, System.Matrix view, System.Matrix world ) : System.Vector3
source System.Vector3 The to unproject.
projection System.Matrix The projection .
view System.Matrix The view .
world System.Matrix The world .
리턴 System.Vector3

Viewport() 공개 메소드

Creates a new instance of Viewport struct.
public Viewport ( Rectangle bounds ) : System
bounds Rectangle A that defines the location and size of the in a render target.
리턴 System

Viewport() 공개 메소드

Constructs a viewport from the given values. The MinDepth will be 0.0 and MaxDepth will be 1.0.
public Viewport ( int x, int y, int width, int height ) : System
x int The x coordinate of the upper-left corner of the view bounds in pixels.
y int The y coordinate of the upper-left corner of the view bounds in pixels.
width int The width of the view bounds in pixels.
height int The height of the view bounds in pixels.
리턴 System

Viewport() 공개 메소드

Constructs a viewport from the given values.
public Viewport ( int x, int y, int width, int height, float minDepth, float maxDepth ) : System
x int The x coordinate of the upper-left corner of the view bounds in pixels.
y int The y coordinate of the upper-left corner of the view bounds in pixels.
width int The width of the view bounds in pixels.
height int The height of the view bounds in pixels.
minDepth float The lower limit of depth.
maxDepth float The upper limit of depth.
리턴 System