Saga3D API Documentation
1.0-RC4
|
Go to the documentation of this file. 1 #ifndef __SAGA_DEVICE_H_INCLUDED__
2 #define __SAGA_DEVICE_H_INCLUDED__
6 #include <glm/vec2.hpp>
66 virtual bool run() = 0;
71 virtual void yield() = 0;
77 virtual void sleep(std::uint32_t timeMs) = 0;
81 virtual std::uint32_t
getTime()
const = 0;
85 virtual const std::shared_ptr<video::IVideoDriver>&
getVideoDriver()
const = 0;
89 virtual const std::shared_ptr<scene::ISceneManager>&
getSceneManager()
const = 0;
142 virtual std::uint32_t
getWidth()
const = 0;
145 virtual std::uint32_t
getHeight()
const = 0;
172 #endif // __SAGA_DEVICE_H_INCLUDED__
virtual glm::ivec2 getWindowPosition()=0
Get the position of the frame on-screen.
virtual void setResizable(bool resize=false)=0
Sets if the window should be resizable in windowed mode.
virtual const std::shared_ptr< scene::ISceneManager > & getSceneManager() const =0
Provides access to the scene manager.
virtual std::uint32_t getTime() const =0
Returns time elapsed in milliseconds since initialization.
virtual void maximizeWindow()=0
Maximizes the window if possible.
virtual bool run()=0
Runs the device.
virtual void sleep(std::uint32_t timeMs)=0
Pause execution and let other processes to run for a specified amount of time.
virtual void closeDevice()=0
Notifies the device that it should close itself.
virtual void restoreWindow()=0
Restore the window to normal size if possible.
virtual float getAspectRatio() const =0
Get aspect ratio.
Interface of an object which can receive events (SDL_Event*)
virtual void addEventReceiver(IEventReceiver *receiver)=0
Register your event listener, which receives SDL_Event.
virtual const std::shared_ptr< video::IVideoDriver > & getVideoDriver() const =0
Provides access to the video driver for drawing 3d and 2d geometry.
virtual void setWindowSize(const glm::uvec2 &size)=0
Resize the render window.
virtual bool isWindowMinimized() const =0
Checks if the Irrlicht window is minimized.
virtual std::uint32_t getWidth() const =0
Get window's width.
virtual bool isFullscreen() const =0
Checks if the Irrlicht window is running in fullscreen mode.
virtual bool isWindowActive() const =0
Returns if the window is active.
E_PIXEL_FORMAT
Enumeration for all primitive types there are.
The Irrlicht device. You can create it with createDevice() or createDeviceEx().
virtual bool isWindowFocused() const =0
Checks if the Irrlicht window has focus.
virtual void minimizeWindow()=0
Minimizes the window if possible.
virtual std::uint32_t getHeight() const =0
Get window's height.
virtual void yield()=0
Cause the device to temporarily pause execution for 500ms and let other processes run.
virtual void setWindowCaption(const std::string &text)=0
Sets the caption of the window.