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(); } } }
/** * @brief A copy constructor which receives an IntMatrix object and deep copies it. * @param An IntMatrix object to be copied. */ IntMatrix :: IntMatrix(const IntMatrix ©Matrix) { _initMatrix(); *this = copyMatrix; }
IntMatrix :: IntMatrix() { _initMatrix(); }