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

Method SetViewport

LuaSTGPlus/AppFrame.h:296–309  ·  view source on GitHub ↗

@brief �����ӿ�

Source from the content-addressed store, hash-verified

294
295 /// @brief �����ӿ�
296 bool SetViewport(double left, double right, double bottom, double top)LNOEXCEPT
297 {
298 if (FCYFAILED(m_pRenderDev->SetViewport(fcyRect(
299 static_cast<float>((int)left),
300 static_cast<float>((int)m_pRenderDev->GetBufferHeight() - (int)top),
301 static_cast<float>((int)right),
302 static_cast<float>((int)m_pRenderDev->GetBufferHeight() - (int)bottom)
303 ))))
304 {
305 LERROR("�����ӿ�(left: %lf, right: %lf, bottom: %lf, top: %lf)ʧ��", left, right, bottom, top);
306 return false;
307 }
308 return true;
309 }
310
311 /// @brief ������ͶӰ����
312 void SetOrtho(float left, float right, float bottom, float top)LNOEXCEPT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected