C# Class GUI.Types.Renderer.Camera

Exibir arquivo Open project: SteamDatabase/ValveResourceFormat Class Usage Examples

Public Properties

Property Type Description
CameraViewMatrix Matrix4
Location Vector3
ProjectionMatrix Matrix4
Yaw double

Public Methods

Method Description
Camera ( int viewportWidth, int viewportHeight, Matrix4 cameraViewMatrix, string name = "Default" ) : System
Camera ( int viewportWidth, int viewportHeight, Vector3 minBounds, Vector3 maxBounds, string name = "Default" ) : System
HandleInput ( MouseState mouseState, KeyboardState keyboardState ) : void
SetViewportSize ( int viewportWidth, int viewportHeight ) : void
Tick ( string &fpsString ) : void
ToString ( ) : string

Private Methods

Method Description
ClampRotation ( ) : void
GetElapsedTime ( ) : float

Method Details

Camera() public method

public Camera ( int viewportWidth, int viewportHeight, Matrix4 cameraViewMatrix, string name = "Default" ) : System
viewportWidth int
viewportHeight int
cameraViewMatrix Matrix4
name string
return System

Camera() public method

public Camera ( int viewportWidth, int viewportHeight, Vector3 minBounds, Vector3 maxBounds, string name = "Default" ) : System
viewportWidth int
viewportHeight int
minBounds Vector3
maxBounds Vector3
name string
return System

HandleInput() public method

public HandleInput ( MouseState mouseState, KeyboardState keyboardState ) : void
mouseState MouseState
keyboardState KeyboardState
return void

SetViewportSize() public method

public SetViewportSize ( int viewportWidth, int viewportHeight ) : void
viewportWidth int
viewportHeight int
return void

Tick() public method

public Tick ( string &fpsString ) : void
fpsString string
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

CameraViewMatrix public_oe property

public Matrix4 CameraViewMatrix
return Matrix4

Location public_oe property

public Vector3 Location
return Vector3

ProjectionMatrix public_oe property

public Matrix4 ProjectionMatrix
return Matrix4

Yaw public_oe property

public double Yaw
return double