28 #ifndef __Viewport_H__
29 #define __Viewport_H__
99 void _updateDimensions(
void);
119 Real depth = 1.0f,
unsigned short stencil = 0);
127 Camera* getCamera(
void)
const;
130 void setCamera(
Camera* cam);
133 int getZOrder(
void)
const;
137 Real getLeft(
void)
const;
142 Real getTop(
void)
const;
148 Real getWidth(
void)
const;
153 Real getHeight(
void)
const;
158 int getActualLeft(
void)
const;
163 int getActualTop(
void)
const;
167 int getActualWidth(
void)
const;
172 int getActualHeight(
void)
const;
190 void setOrientationMode(
OrientationMode orientationMode,
bool setDefault =
true);
198 static void setDefaultOrientationMode(
OrientationMode orientationMode);
207 void setBackgroundColour(
const ColourValue& colour);
211 const ColourValue& getBackgroundColour(
void)
const;
226 bool getClearEveryFrame(
void)
const;
229 unsigned int getClearBuffers(
void)
const;
242 void setAutoUpdated(
bool autoupdate);
246 bool isAutoUpdated()
const;
256 { mMaterialSchemeName = schemeName; }
261 {
return mMaterialSchemeName; }
265 void getActualDimensions(
266 int &left,
int &top,
int &width,
int &height )
const;
268 bool _isUpdated(
void)
const;
269 void _clearUpdatedFlag(
void);
273 unsigned int _getNumRenderedFaces(
void)
const;
277 unsigned int _getNumRenderedBatches(
void)
const;
289 void setOverlaysEnabled(
bool enabled);
293 bool getOverlaysEnabled(
void)
const;
305 void setSkiesEnabled(
bool enabled);
309 bool getSkiesEnabled(
void)
const;
319 void setShadowsEnabled(
bool enabled);
323 bool getShadowsEnabled(
void)
const;
353 virtual void setRenderQueueInvocationSequenceName(
const String& sequenceName);
355 virtual const String& getRenderQueueInvocationSequenceName(
void)
const;
360 void pointOrientedToScreen(
const Vector2 &v,
int orientationMode,
Vector2 &outv);
361 void pointOrientedToScreen(
Real orientedX,
Real orientedY,
int orientationMode,
A 'canvas' which can receive the results of a rendering operation.
A viewpoint from which the scene will be rendered.
float Real
Software floating point type.
void setMaterialScheme(const String &schemeName)
Set the material scheme which the viewport should use.
unsigned int mClearBuffers
Class representing colour.
ColourValue mBackColour
Background options.
bool mIsAutoUpdated
Automatic rendering on/off.
Class to hold a linear sequence of RenderQueueInvocation objects.
OrientationMode
Specifies orientation mode.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Standard 2-dimensional vector.
uint getVisibilityMask(void) const
Gets a per-viewport visibility mask.
An abstraction of a viewport, i.e.
String mMaterialSchemeName
Material scheme.
const String & getMaterialScheme(void) const
Get the material scheme which the viewport should use.
static const ColourValue Black
static OrientationMode mDefaultOrientationMode
void setVisibilityMask(uint32 mask)
Sets a per-viewport visibility mask.
RenderQueueInvocationSequence * mRQSequence
OrientationMode mOrientationMode
Viewport orientation mode.