| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- $#include "Graphics.h"
- /// %Graphics subsystem. Manages the application window, rendering state and GPU resources.
- class Graphics : public Object
- {
- public:
- /// Set window title.
- void SetWindowTitle(const char* windowTitle);
-
- /// Set whether the main window uses sRGB conversion on write.
- void SetSRGB(bool enable);
-
- /// Toggle between full screen and windowed mode. Return true if successful.
- bool ToggleFullscreen();
-
- /// Take a screenshot. Return true if successful.
- bool TakeScreenShot(Image& destImage);
-
- /// Return whether rendering initialized.
- bool IsInitialized() const;
-
- /// Return window width.
- int GetWidth() const;
-
- /// Return window height.
- int GetHeight() const;
-
- /// Return multisample mode (1 = no multisampling.)
- int GetMultiSample() const;
-
- /// Return whether window is fullscreen.
- bool GetFullscreen() const;
-
- /// Return whether window is resizable.
- bool GetResizable() const;
-
- /// Return whether vertical sync is on.
- bool GetVSync() const;
-
- /// Return whether triple buffering is enabled.
- bool GetTripleBuffer() const;
-
- /// Return whether the main window is using sRGB conversion on write.
- bool GetSRGB() const;
- };
|