Graphics.pkg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $#include "Graphics.h"
  2. /// %Graphics subsystem. Manages the application window, rendering state and GPU resources.
  3. class Graphics : public Object
  4. {
  5. public:
  6. /// Set window title.
  7. void SetWindowTitle(const char* windowTitle);
  8. /// Set whether the main window uses sRGB conversion on write.
  9. void SetSRGB(bool enable);
  10. /// Toggle between full screen and windowed mode. Return true if successful.
  11. bool ToggleFullscreen();
  12. /// Take a screenshot. Return true if successful.
  13. bool TakeScreenShot(Image& destImage);
  14. /// Return whether rendering initialized.
  15. bool IsInitialized() const;
  16. /// Return window width.
  17. int GetWidth() const;
  18. /// Return window height.
  19. int GetHeight() const;
  20. /// Return multisample mode (1 = no multisampling.)
  21. int GetMultiSample() const;
  22. /// Return whether window is fullscreen.
  23. bool GetFullscreen() const;
  24. /// Return whether window is resizable.
  25. bool GetResizable() const;
  26. /// Return whether vertical sync is on.
  27. bool GetVSync() const;
  28. /// Return whether triple buffering is enabled.
  29. bool GetTripleBuffer() const;
  30. /// Return whether the main window is using sRGB conversion on write.
  31. bool GetSRGB() const;
  32. };