Class to mangage render windows.
More...
#include <rendering/rendering.hh>
|
| WindowManager () |
| Constructor.
|
|
virtual | ~WindowManager () |
| Destructor.
|
|
float | AvgFPS (const uint32_t _id) const |
| Get the average FPS.
|
|
int | CreateWindow (const std::string &_ogreHandle, uint32_t _width, uint32_t _height, const double _devicePixelRatio=1.0) |
| Create a window.
|
|
void | Fini () |
| Shutdown all the windows.
|
|
void | Moved (uint32_t _id) |
| Tells Ogre the window has moved, and needs updating.
|
|
void | Resize (uint32_t _id, int _width, int _height) |
| Resize a window.
|
|
void | SetCamera (int _windowId, CameraPtr _camera) |
| Attach a camera to a window.
|
|
uint32_t | TriangleCount (const uint32_t _id) const |
| Get the triangle count.
|
|
Ogre::RenderWindow * | Window (const uint32_t _id) const |
| Get the render window associated with the given id.
|
|
Class to mangage render windows.
◆ WindowManager()
◆ ~WindowManager()
◆ AvgFPS()
float AvgFPS |
( |
const uint32_t | _id | ) |
const |
Get the average FPS.
- Parameters
-
- Returns
- The frames per second.
◆ CreateWindow()
int CreateWindow |
( |
const std::string & | _ogreHandle, |
|
|
uint32_t | _width, |
|
|
uint32_t | _height, |
|
|
const double | _devicePixelRatio = 1.0 ) |
Create a window.
- Parameters
-
[in] | _ogreHandle | String representing the ogre window handle. |
[in] | _width | With of the window in pixels. |
[in] | _height | Height of the window in pixels. |
[in] | _devicePixelRatio | Screen point to pixel ratio |
◆ Fini()
Shutdown all the windows.
◆ Moved()
void Moved |
( |
uint32_t | _id | ) |
|
Tells Ogre the window has moved, and needs updating.
- Parameters
-
◆ Resize()
void Resize |
( |
uint32_t | _id, |
|
|
int | _width, |
|
|
int | _height ) |
Resize a window.
- Parameters
-
[in] | _id | Id of the window to resize. |
[in] | _width | New width of the window. |
[in] | _height | New height of the window. |
◆ SetCamera()
void SetCamera |
( |
int | _windowId, |
|
|
CameraPtr | _camera ) |
Attach a camera to a window.
- Parameters
-
[in] | _windowId | Id of the window to add the camera to. |
[in] | _camera | Pointer to the camera to attach. |
◆ TriangleCount()
uint32_t TriangleCount |
( |
const uint32_t | _id | ) |
const |
Get the triangle count.
- Parameters
-
- Returns
- The triangle count.
◆ Window()
Ogre::RenderWindow * Window |
( |
const uint32_t | _id | ) |
const |
Get the render window associated with the given id.
- Parameters
-
- Returns
- Pointer to the render window, NULL if the id is invalid.
The documentation for this class was generated from the following file: