Source.cpp 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "stdafx.h"
  2. #include <windows.h>
  3. #include "BsApplication.h"
  4. #include "CmRenderWindow.h"
  5. #include "CmSceneObject.h"
  6. using namespace BansheeEngine;
  7. void setUpExample();
  8. int CALLBACK WinMain(
  9. _In_ HINSTANCE hInstance,
  10. _In_ HINSTANCE hPrevInstance,
  11. _In_ LPSTR lpCmdLine,
  12. _In_ int nCmdShow
  13. )
  14. {
  15. RENDER_WINDOW_DESC renderWindowDesc;
  16. renderWindowDesc.width = 1280;
  17. renderWindowDesc.height = 720;
  18. renderWindowDesc.title = "Banshee Example App";
  19. renderWindowDesc.fullscreen = false;
  20. gBansheeApp().startUp(renderWindowDesc, "CamelotD3D11RenderSystem", "BansheeForwardRenderer"); // TODO - Use enums instead of names. BansheeApp is a high level system that doesn't need to be as customizable.
  21. setUpExample();
  22. gBansheeApp().runMainLoop();
  23. gBansheeApp().shutDown();
  24. return 0;
  25. }
  26. void setUpExample()
  27. {
  28. HSceneObject exampleSO = SceneObject::create("Example");
  29. // TODO - add ExampleGUI component
  30. }