CmD3D9RenderSystemFactory.cpp 449 B

123456789101112131415161718
  1. #include "CmD3D9RenderSystemFactory.h"
  2. #include "CmRenderSystem.h"
  3. namespace CamelotFramework
  4. {
  5. void D3D9RenderSystemFactory::create()
  6. {
  7. #ifdef CM_STATIC_LIB
  8. HINSTANCE hInst = GetModuleHandle( NULL );
  9. #else
  10. HINSTANCE hInst = GetModuleHandle( "CamelotD3D9RenderSystem.dll" );
  11. #endif
  12. RenderSystem::startUp(cm_new<D3D9RenderSystem>(hInst));
  13. }
  14. D3D9RenderSystemFactory::InitOnStart D3D9RenderSystemFactory::initOnStart;
  15. }