Project.cpp 886 B

12345678910111213141516171819202122232425262728293031323334
  1. /******************************************************************************/
  2. #include "stdafx.h"
  3. /******************************************************************************/
  4. void InitPre()
  5. {
  6. App.name("Project");
  7. App.flag=APP_MINIMIZABLE|APP_MAXIMIZABLE|APP_RESIZABLE|APP_FULL_TOGGLE;
  8. #ifdef DEBUG
  9. App.flag|=APP_MEM_LEAKS|APP_BREAKPOINT_ON_ERROR;
  10. #endif
  11. DataPath("../Data");
  12. //Paks.add("engine.pak");
  13. }
  14. Bool Init()
  15. {
  16. return true;
  17. }
  18. void Shut()
  19. {
  20. }
  21. /******************************************************************************/
  22. Bool Update()
  23. {
  24. if(Kb.bp(KB_ESC))return false;
  25. if(!App.active())Time.wait(1);
  26. return true;
  27. }
  28. /******************************************************************************/
  29. void Draw()
  30. {
  31. D.clear(TURQ);
  32. D.text(0, 0.9f, S+Time.fps());
  33. }
  34. /******************************************************************************/