Public Methods |
| | Viewport (Camera *camera, RenderTarget *target, float left, float top, float width, float height, int ZOrder) |
| | The usual constructor. More...
|
| | ~Viewport () |
| | Default destructor. More...
|
| void | _updateDimensions (void) |
| | Notifies the viewport of a possible change in dimensions. More...
|
| void | update (void) |
| | Instructs the viewport to updates its contents. More...
|
| RenderTarget * | getTarget (void) const |
| | Retrieves a pointer to the render target for this viewport. More...
|
| Camera * | getCamera (void) const |
| | Retrieves a pointer to the camera for this viewport. More...
|
| void | setCamera (Camera *cam) |
| | Sets the camera to use for rendering to this viewport. More...
|
| float | getLeft (void) const |
| | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. More...
|
| float | getTop (void) const |
| | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. More...
|
| float | getWidth (void) const |
| | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. More...
|
| float | getHeight (void) const |
| | Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. More...
|
| int | getActualLeft (void) const |
| | Gets one of the actual dimensions of the viewport, a value in pixels. More...
|
| int | getActualTop (void) const |
| | Gets one of the actual dimensions of the viewport, a value in pixels. More...
|
| int | getActualWidth (void) const |
| | Gets one of the actual dimensions of the viewport, a value in pixels. More...
|
| int | getActualHeight (void) const |
| | Gets one of the actual dimensions of the viewport, a value in pixels. More...
|
| void | setDimensions (float left, float top, float width, float height) |
| | Sets the dimensions (after creation). More...
|
| void | setBackgroundColour (ColourValue colour) |
| | Sets the initial background colour of the viewport (before rendering). More...
|
| const ColourValue & | getBackgroundColour (void) const |
| | Gets the background colour. More...
|
| void | setClearEveryFrame (bool clear) |
| | Determines whether to clear the viewport before rendering. More...
|
| bool | getClearEveryFrame (void) const |
| | Determines if the viewport is cleared before every frame. More...
|
| void | getActualDimensions (int &left, int &top, int &width, int &height) const |
| | Access to actual dimensions (based on target size). More...
|
| bool | _isUpdated (void) const |
| void | _clearUpdatedFlag (void) |
| unsigned int | _getNumRenderedFaces (void) const |
| | Gets the number of rendered faces in the last update. More...
|
| void | setOverlaysEnabled (bool enabled) |
| | Tells this viewport whether it should display Overlay objects. More...
|
| bool | getOverlaysEnabled (void) |
| | Returns whether or not Overlay objects (created in the SceneManager) are displayed in this viewport. More...
|
Protected Attributes |
| Camera * | mCamera |
| RenderTarget * | mTarget |
| float | mRelLeft |
| float | mRelTop |
| float | mRelWidth |
| float | mRelHeight |
| int | mActLeft |
| int | mActTop |
| int | mActWidth |
| int | mActHeight |
| int | mZOrder |
| | ZOrder. More...
|
| ColourValue | mBackColour |
| | Background options. More...
|
| bool | mClearEveryFrame |
| bool | mUpdated |
| bool | mShowOverlays |
a rendering region on a render target.