コード例 #1
0
ファイル: AVDirector.cpp プロジェクト: Jin02/TerrainTool
void AVDirector::RunApplication(float fCullValue, HINSTANCE hIns, HWND parentHandle, bool isChild, AVRECT &windowRect, wchar_t *application)
{

	m_Application = new AVWinD3D((WNDPROC)AVDirector::WndProc, hIns, windowRect, parentHandle, application, isChild);
	m_Application->InitWinD3D(application, true, true, D3DCULL_CCW);

	MSG msg;
	ZeroMemory( &msg, sizeof( msg ) );

	_initMatrix(fCullValue);
	_initLight();
	SetFog(fCullValue - 100.f, fCullValue - 50.f);

	if(m_Application->isChild())
		return;

	while( msg.message != WM_QUIT )
	{
		if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
		{
			TranslateMessage( &msg );
			DispatchMessage( &msg );
		}
		else
		{
			RunToInnerSystem();
			tickTime();

			if(m_bIsFrameCheck)
				calculateFPS();
		}
	}
}
コード例 #2
0
/**
 * @brief A copy constructor which receives an IntMatrix object and deep copies it.
 * @param An IntMatrix object to be copied.
 */
IntMatrix :: IntMatrix(const IntMatrix &copyMatrix)
{
    _initMatrix();
    *this = copyMatrix;
}
コード例 #3
0
IntMatrix :: IntMatrix()
{
    _initMatrix();
}