C# 클래스 Duality.Components.Camera

상속: Component, ICmpInitializable
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddEditorRendererFilter void
CollectDrawcalls void
ICmpInitializable void
NotifyCollectDrawcalls void
OnFrameRendered void
ReleaseDevice void
RemoveEditorRendererFilter void
RenderSinglePass void
SetupDevice void
SetupPickingRT void
UpdateDeviceConfig void

공개 메소드들

메소드 설명
Camera ( ) : System
GetScaleAtZ ( float z ) : float

Returns the scale factor of objects that are located at the specified (world space) z-Coordinate.

GetScreenCoord ( System.Vector2 spacePos ) : Vector3

Transforms world space coordinates to screen space coordinates.

GetScreenCoord ( Vector3 spacePos ) : Vector3

Transforms world space coordinates to screen space coordinates.

GetSpaceCoord ( System.Vector2 screenPos ) : Vector3

Transforms screen space coordinates to world space coordinates.

GetSpaceCoord ( Vector3 screenPos ) : Vector3

Transforms screen space coordinates to world space coordinates. The screen positions Z coordinate is interpreted as the target world Z coordinate.

IsCoordInView ( Vector3 c, float boundRad = 1.0f ) : bool

Returns whether the specified world-space position is visible in the Cameras view space.

MakeAvailable ( ) : void
OnPassRendered ( Pass pass ) : void
PickRendererAt ( Rect viewportRect, int x, int y ) : ICmpRenderer

Picks the Duality.ICmpRenderer that owns the pixel at the specified position.

PickRendererAt ( int x, int y ) : ICmpRenderer

Picks the Duality.ICmpRenderer that owns the pixel at the specified position.

PickRenderersIn ( Rect viewportRect, int x, int y, int w, int h ) : HashSet

Picks all ICmpRenderers contained within the specified rectangular area.

PickRenderersIn ( int x, int y, int w, int h ) : HashSet

Picks all ICmpRenderers contained within the specified rectangular area.

Render ( Rect viewportRect ) : void

Renders the current Duality.Resources.Scene.

RenderPickingMap ( System.Vector2 viewportSize ) : bool

Renders a picking map of the current Duality.Resources.Scene. If picking is required, this will be (automatically) done each frame a picking operation needs to be performed.

ScreenToViewportCoord ( System.Vector2 screenPos ) : System.Vector2

Transforms screen space coordinates to viewport coordinates.

ToString ( ) : string

보호된 메소드들

메소드 설명
OnCopyTo ( Component target, Duality provider ) : void

비공개 메소드들

메소드 설명
AddEditorRendererFilter ( Predicate filter ) : void
CollectDrawcalls ( ) : void
ICmpInitializable ( Component context ) : void
NotifyCollectDrawcalls ( IDrawDevice device ) : void
OnFrameRendered ( ) : void
ReleaseDevice ( ) : void
RemoveEditorRendererFilter ( Predicate filter ) : void
RenderSinglePass ( Rect viewportRect, Pass p ) : void
SetupDevice ( ) : void
SetupPickingRT ( System.Vector2 size ) : void
UpdateDeviceConfig ( ) : void

메소드 상세

Camera() 공개 메소드

public Camera ( ) : System
리턴 System

GetScaleAtZ() 공개 메소드

Returns the scale factor of objects that are located at the specified (world space) z-Coordinate.
public GetScaleAtZ ( float z ) : float
z float
리턴 float

GetScreenCoord() 공개 메소드

Transforms world space coordinates to screen space coordinates.
public GetScreenCoord ( System.Vector2 spacePos ) : Vector3
spacePos System.Vector2
리턴 Vector3

GetScreenCoord() 공개 메소드

Transforms world space coordinates to screen space coordinates.
public GetScreenCoord ( Vector3 spacePos ) : Vector3
spacePos Vector3
리턴 Vector3

GetSpaceCoord() 공개 메소드

Transforms screen space coordinates to world space coordinates.
public GetSpaceCoord ( System.Vector2 screenPos ) : Vector3
screenPos System.Vector2
리턴 Vector3

GetSpaceCoord() 공개 메소드

Transforms screen space coordinates to world space coordinates. The screen positions Z coordinate is interpreted as the target world Z coordinate.
public GetSpaceCoord ( Vector3 screenPos ) : Vector3
screenPos Vector3
리턴 Vector3

IsCoordInView() 공개 메소드

Returns whether the specified world-space position is visible in the Cameras view space.
public IsCoordInView ( Vector3 c, float boundRad = 1.0f ) : bool
c Vector3 The position to test.
boundRad float The visual bounding radius to assume for the specified position.
리턴 bool

MakeAvailable() 공개 메소드

public MakeAvailable ( ) : void
리턴 void

OnCopyTo() 보호된 메소드

protected OnCopyTo ( Component target, Duality provider ) : void
target Component
provider Duality
리턴 void

OnPassRendered() 공개 메소드

public OnPassRendered ( Pass pass ) : void
pass Pass
리턴 void

PickRendererAt() 공개 메소드

Picks the Duality.ICmpRenderer that owns the pixel at the specified position.
public PickRendererAt ( Rect viewportRect, int x, int y ) : ICmpRenderer
viewportRect Rect The viewport area to which will be rendered.
x int x-Coordinate of the pixel to check.
y int y-Coordinate of the pixel to check.
리턴 ICmpRenderer

PickRendererAt() 공개 메소드

Picks the Duality.ICmpRenderer that owns the pixel at the specified position.
public PickRendererAt ( int x, int y ) : ICmpRenderer
x int x-Coordinate of the pixel to check.
y int y-Coordinate of the pixel to check.
리턴 ICmpRenderer

PickRenderersIn() 공개 메소드

Picks all ICmpRenderers contained within the specified rectangular area.
public PickRenderersIn ( Rect viewportRect, int x, int y, int w, int h ) : HashSet
viewportRect Rect The viewport area to which will be rendered.
x int x-Coordinate of the Rect.
y int y-Coordinate of the Rect.
w int Width of the Rect.
h int Height of the Rect.
리턴 HashSet

PickRenderersIn() 공개 메소드

Picks all ICmpRenderers contained within the specified rectangular area.
public PickRenderersIn ( int x, int y, int w, int h ) : HashSet
x int x-Coordinate of the Rect.
y int y-Coordinate of the Rect.
w int Width of the Rect.
h int Height of the Rect.
리턴 HashSet

Render() 공개 메소드

Renders the current Duality.Resources.Scene.
public Render ( Rect viewportRect ) : void
viewportRect Rect The viewport area to which will be rendered.
리턴 void

RenderPickingMap() 공개 메소드

Renders a picking map of the current Duality.Resources.Scene. If picking is required, this will be (automatically) done each frame a picking operation needs to be performed.
public RenderPickingMap ( System.Vector2 viewportSize ) : bool
viewportSize System.Vector2 Sife of the viewport area to which will be rendered.
리턴 bool

ScreenToViewportCoord() 공개 메소드

Transforms screen space coordinates to viewport coordinates.
public ScreenToViewportCoord ( System.Vector2 screenPos ) : System.Vector2
screenPos System.Vector2
리턴 System.Vector2

ToString() 공개 메소드

public ToString ( ) : string
리턴 string