SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetPerspective() [1/2]

void Spices::Camera::SetPerspective ( float aspectRatio)

Set ProjectionMatrix by using perspective type with one param.

Parameters
[in]aspectRatioAspectRatio, viewport width / viewport height.

Definition at line 26 of file Camera.cpp.

27 {
29
31
33 }
#define SPICES_PROFILE_ZONE
void SetPerspective(float fov, float nearPlane, float aspectRatio=1.777f)
Set ProjectionMatrix by using perspective type.
Definition Camera.cpp:15
ProjectionType m_ProjectionType
Definition Camera.h:169
PerspectiveParam m_PerspectiveParam
Camera PerspectiveParam.
Definition Camera.h:179
@ Perspective
perspective
Definition Camera.h:22

References Spices::PerspectiveParam::fov, m_PerspectiveParam, m_ProjectionType, Spices::PerspectiveParam::nearPlane, Spices::Perspective, and SetPerspective().