MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SetPerspective

Method SetPerspective

LuaSTGPlus/AppFrame.h:325–334  ·  view source on GitHub ↗

@brief ����͸��ͶӰ����

Source from the content-addressed store, hash-verified

323
324 /// @brief ����͸��ͶӰ����
325 void SetPerspective(float eyeX, float eyeY, float eyeZ, float atX, float atY, float atZ,
326 float upX, float upY, float upZ, float fovy, float aspect, float zn, float zf)LNOEXCEPT
327 {
328 if (m_GraphType == GraphicsType::Graph2D)
329 {
330 m_Graph2D->SetWorldTransform(fcyMatrix4::GetIdentity());
331 m_Graph2D->SetViewTransform(fcyMatrix4::GetLookAtLH(fcyVec3(eyeX, eyeY, eyeZ), fcyVec3(atX, atY, atZ), fcyVec3(upX, upY, upZ)));
332 m_Graph2D->SetProjTransform(fcyMatrix4::GetPespctiveLH(aspect, fovy, zn, zf));
333 }
334 }
335
336 /// @brief ������ֵ
337 /// @note ��չ������������Ƴ���

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected