Class SdkFirstPersonCamera
Simple first person camera class that moves and rotates.
It allows yaw and pitch but not roll. It uses WM_KEYDOWN and GetCursorPos() to respond to keyboard and mouse input and updates the view matrix based on input.
Inheritance
SdkFirstPersonCamera
Assembly: JeremyAnsel.DirectX.SdkCamera.dll
Syntax
public class SdkFirstPersonCamera : SdkBaseCamera
Constructors
|
Edit this page
View Source
SdkFirstPersonCamera()
Declaration
public SdkFirstPersonCamera()
Fields
|
Edit this page
View Source
Declaration
protected bool m_bRotateWithoutButtonDown
Field Value
|
Edit this page
View Source
m_mCameraWorld
Declaration
protected XMMatrix m_mCameraWorld
Field Value
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
Declaration
protected MouseKeys m_nActiveButtonMask
Field Value
Type |
Description |
MouseKeys |
|
Methods
|
Edit this page
View Source
FrameMove(double)
Declaration
public override void FrameMove(double fElapsedTime)
Parameters
Type |
Name |
Description |
double |
fElapsedTime |
|
Overrides
|
Edit this page
View Source
GetEyePt()
Declaration
public XMVector GetEyePt()
Returns
Type |
Description |
XMVector |
|
|
Edit this page
View Source
GetWorldAheads()
Declaration
public XMVector GetWorldAheads()
Returns
Type |
Description |
XMVector |
|
|
Edit this page
View Source
GetWorldMatrix()
Declaration
public XMMatrix GetWorldMatrix()
Returns
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
GetWorldRight()
Declaration
public XMVector GetWorldRight()
Returns
Type |
Description |
XMVector |
|
|
Edit this page
View Source
GetWorldUp()
Declaration
public XMVector GetWorldUp()
Returns
Type |
Description |
XMVector |
|
|
Edit this page
View Source
Declaration
public void SetRotateButtons(bool bLeft, bool bMiddle, bool bRight)
Parameters
|
Edit this page
View Source
Declaration
public void SetRotateButtons(bool bLeft, bool bMiddle, bool bRight, bool bRotateWithoutButtonDown)
Parameters
Type |
Name |
Description |
bool |
bLeft |
|
bool |
bMiddle |
|
bool |
bRight |
|
bool |
bRotateWithoutButtonDown |
|