C# Class FSO.Common.Rendering.Framework.Camera.BasicCamera

Inheritance: ICamera
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
DrawCamera bool

Protected Properties

Property Type Description
m_Device GraphicsDevice
m_Position Vector3
m_Projection Matrix
m_ProjectionDirty bool
m_ProjectionOrigin Vector2
m_Target Vector3
m_Translation Vector3
m_Up Vector3
m_View Matrix
m_ViewDirty bool
m_Zoom float

Private Properties

Property Type Description

Public Methods

Method Description
BasicCamera ( GraphicsDevice device, Vector3 Position, Vector3 Target, Vector3 Up ) : System

Creates a new BasicCamera instance. Assumes projection is full screen!

Draw ( GraphicsDevice device ) : void
ProjectionDirty ( ) : void

Protected Methods

Method Description
CalculateProjection ( ) : void
CalculateView ( ) : void

Method Details

BasicCamera() public method

Creates a new BasicCamera instance. Assumes projection is full screen!
public BasicCamera ( GraphicsDevice device, Vector3 Position, Vector3 Target, Vector3 Up ) : System
device GraphicsDevice A GraphicsDevice instance used for rendering.
Position Vector3 Camera's initial position.
Target Vector3 Camera's initial target.
Up Vector3 Camera's initial up vector.
return System

CalculateProjection() protected method

protected CalculateProjection ( ) : void
return void

CalculateView() protected method

protected CalculateView ( ) : void
return void

Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

ProjectionDirty() public method

public ProjectionDirty ( ) : void
return void

Property Details

DrawCamera public_oe property

public bool DrawCamera
return bool

m_Device protected_oe property

protected GraphicsDevice m_Device
return GraphicsDevice

m_Position protected_oe property

protected Vector3 m_Position
return Vector3

m_Projection protected_oe property

protected Matrix m_Projection
return Matrix

m_ProjectionDirty protected_oe property

protected bool m_ProjectionDirty
return bool

m_ProjectionOrigin protected_oe property

protected Vector2 m_ProjectionOrigin
return Vector2

m_Target protected_oe property

protected Vector3 m_Target
return Vector3

m_Translation protected_oe property

protected Vector3 m_Translation
return Vector3

m_Up protected_oe property

protected Vector3 m_Up
return Vector3

m_View protected_oe property

protected Matrix m_View
return Matrix

m_ViewDirty protected_oe property

protected bool m_ViewDirty
return bool

m_Zoom protected_oe property

protected float m_Zoom
return float