#include <OgreViewport.h>
Public Member Functions | |
Viewport (Camera *camera, RenderTarget *target, Real left, Real top, Real width, Real height, int ZOrder) | |
The usual constructor. | |
~Viewport () | |
Default destructor. | |
void | _updateDimensions (void) |
Notifies the viewport of a possible change in dimensions. | |
void | update (void) |
Instructs the viewport to updates its contents. | |
RenderTarget * | getTarget (void) const |
Retrieves a pointer to the render target for this viewport. | |
Camera * | getCamera (void) const |
Retrieves a pointer to the camera for this viewport. | |
void | setCamera (Camera *cam) |
Sets the camera to use for rendering to this viewport. | |
int | getZOrder (void) const |
Gets the Z-Order of this viewport. | |
Real | getLeft (void) const |
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. | |
Real | getTop (void) const |
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. | |
Real | getWidth (void) const |
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. | |
Real | getHeight (void) const |
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. | |
int | getActualLeft (void) const |
Gets one of the actual dimensions of the viewport, a value in pixels. | |
int | getActualTop (void) const |
Gets one of the actual dimensions of the viewport, a value in pixels. | |
int | getActualWidth (void) const |
Gets one of the actual dimensions of the viewport, a value in pixels. | |
int | getActualHeight (void) const |
Gets one of the actual dimensions of the viewport, a value in pixels. | |
void | setDimensions (Real left, Real top, Real width, Real height) |
Sets the dimensions (after creation). | |
void | setBackgroundColour (const ColourValue &colour) |
Sets the initial background colour of the viewport (before rendering). | |
const ColourValue & | getBackgroundColour (void) const |
Gets the background colour. | |
void | setClearEveryFrame (bool clear) |
Determines whether to clear the viewport before rendering. | |
bool | getClearEveryFrame (void) const |
Determines if the viewport is cleared before every frame. | |
void | getActualDimensions (int &left, int &top, int &width, int &height) const |
Access to actual dimensions (based on target size). | |
bool | _isUpdated (void) const |
void | _clearUpdatedFlag (void) |
unsigned int | _getNumRenderedFaces (void) const |
Gets the number of rendered faces in the last update. | |
void | setOverlaysEnabled (bool enabled) |
Tells this viewport whether it should display Overlay objects. | |
bool | getOverlaysEnabled (void) const |
Returns whether or not Overlay objects (created in the SceneManager) are displayed in this viewport. | |
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. | |
ColourValue | mBackColour |
Background options. | |
bool | mClearEveryFrame |
bool | mUpdated |
bool | mShowOverlays |
a rendering region on a render target.
Definition at line 46 of file OgreViewport.h.
|
The usual constructor.
|
|
Default destructor.
|
|
|
|
Gets the number of rendered faces in the last update.
|
|
|
|
Notifies the viewport of a possible change in dimensions.
|
|
Access to actual dimensions (based on target size).
|
|
Gets one of the actual dimensions of the viewport, a value in pixels.
|
|
Gets one of the actual dimensions of the viewport, a value in pixels.
|
|
Gets one of the actual dimensions of the viewport, a value in pixels.
|
|
Gets one of the actual dimensions of the viewport, a value in pixels.
|
|
Gets the background colour.
|
|
Retrieves a pointer to the camera for this viewport.
|
|
Determines if the viewport is cleared before every frame.
|
|
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
|
|
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
|
|
Returns whether or not Overlay objects (created in the SceneManager) are displayed in this viewport.
|
|
Retrieves a pointer to the render target for this viewport.
|
|
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
|
|
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
|
|
Gets the Z-Order of this viewport.
|
|
Sets the initial background colour of the viewport (before rendering).
|
|
Sets the camera to use for rendering to this viewport.
|
|
Determines whether to clear the viewport before rendering.
|
|
Sets the dimensions (after creation).
|
|
Tells this viewport whether it should display Overlay objects.
|
|
Instructs the viewport to updates its contents.
|
|
Definition at line 219 of file OgreViewport.h. |
|
Definition at line 219 of file OgreViewport.h. |
|
Definition at line 219 of file OgreViewport.h. |
|
Definition at line 219 of file OgreViewport.h. |
|
Background options.
Definition at line 223 of file OgreViewport.h. |
|
Definition at line 214 of file OgreViewport.h. |
|
Definition at line 224 of file OgreViewport.h. |
|
Definition at line 217 of file OgreViewport.h. |
|
Definition at line 217 of file OgreViewport.h. |
|
Definition at line 217 of file OgreViewport.h. |
|
Definition at line 217 of file OgreViewport.h. |
|
Definition at line 226 of file OgreViewport.h. |
|
Definition at line 215 of file OgreViewport.h. |
|
Definition at line 225 of file OgreViewport.h. |
|
ZOrder.
Definition at line 221 of file OgreViewport.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Apr 10 23:27:09 2005