Engine.pkg 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. $#include "Engine.h"
  2. /// Urho3D engine. Creates the other subsystems.
  3. class Engine : public Object
  4. {
  5. public:
  6. /// Run one frame.
  7. void RunFrame();
  8. /// Create the console and return it. May return null if engine configuration does not allow creation (headless mode.)
  9. Console* CreateConsole();
  10. /// Create the debug hud.
  11. DebugHud* CreateDebugHud();
  12. /// Set minimum frames per second. If FPS goes lower than this, time will appear to slow down.
  13. void SetMinFps(int fps);
  14. /// Set maximum frames per second. The engine will sleep if FPS is higher than this.
  15. void SetMaxFps(int fps);
  16. /// Set maximum frames per second when the application does not have input focus.
  17. void SetMaxInactiveFps(int fps);
  18. /// Set whether to pause update events and audio when minimized.
  19. void SetPauseMinimized(bool enable);
  20. /// Close the application window and set the exit flag.
  21. void Exit();
  22. /// Dump profiling information to the log.
  23. void DumpProfiler();
  24. /// Dump information of all resources to the log.
  25. void DumpResources();
  26. /// Dump information of all memory allocations to the log. Supported in MSVC debug mode only.
  27. void DumpMemory();
  28. /// Return the minimum frames per second.
  29. int GetMinFps() const;
  30. /// Return the maximum frames per second.
  31. int GetMaxFps() const;
  32. /// Return the maximum frames per second when the application does not have input focus.
  33. int GetMaxInactiveFps() const;
  34. /// Return whether to pause update events and audio when minimized.
  35. bool GetPauseMinimized() const;
  36. /// Return whether engine has been initialized.
  37. bool IsInitialized() const;
  38. /// Return whether exit has been requested.
  39. bool IsExiting() const;
  40. /// Return whether the engine has been created in headless mode.
  41. bool IsHeadless() const;
  42. };
  43. Engine* GetEngine();