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

Method SetOrtho

LuaSTGPlus/AppFrame.h:312–322  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

310
311 /// @brief ������ͶӰ����
312 void SetOrtho(float left, float right, float bottom, float top)LNOEXCEPT
313 {
314 if (m_GraphType == GraphicsType::Graph2D)
315 {
316 // luastg��lua�����Ѿ�������������
317 // m_Graph2D->SetWorldTransform(fcyMatrix4::GetTranslateMatrix(fcyVec3(-0.5f, -0.5f, 0.f)));
318 m_Graph2D->SetWorldTransform(fcyMatrix4::GetIdentity());
319 m_Graph2D->SetViewTransform(fcyMatrix4::GetIdentity());
320 m_Graph2D->SetProjTransform(fcyMatrix4::GetOrthoOffCenterLH(left, right, bottom, top, 0.f, 100.f));
321 }
322 }
323
324 /// @brief ����͸��ͶӰ����
325 void SetPerspective(float eyeX, float eyeY, float eyeZ, float atX, float atY, float atZ,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected