28 #ifndef __Viewport_H__
29 #define __Viewport_H__
109 void _updateDimensions(
void);
129 Real depth = 1.0f,
unsigned short stencil = 0);
137 Camera* getCamera(
void)
const;
140 void setCamera(
Camera* cam);
143 int getZOrder(
void)
const;
147 Real getLeft(
void)
const;
152 Real getTop(
void)
const;
158 Real getWidth(
void)
const;
163 Real getHeight(
void)
const;
168 int getActualLeft(
void)
const;
173 int getActualTop(
void)
const;
177 int getActualWidth(
void)
const;
182 int getActualHeight(
void)
const;
200 void setOrientationMode(
OrientationMode orientationMode,
bool setDefault =
true);
208 static void setDefaultOrientationMode(
OrientationMode orientationMode);
217 void setBackgroundColour(
const ColourValue& colour);
221 const ColourValue& getBackgroundColour(
void)
const;
226 void setDepthClear(
Real depth );
230 Real getDepthClear(
void)
const;
245 bool getClearEveryFrame(
void)
const;
248 unsigned int getClearBuffers(
void)
const;
261 void setAutoUpdated(
bool autoupdate);
265 bool isAutoUpdated()
const;
275 { mMaterialSchemeName = schemeName; }
280 {
return mMaterialSchemeName; }
284 void getActualDimensions(
285 int &left,
int &top,
int &width,
int &height )
const;
287 bool _isUpdated(
void)
const;
288 void _clearUpdatedFlag(
void);
292 unsigned int _getNumRenderedFaces(
void)
const;
296 unsigned int _getNumRenderedBatches(
void)
const;
308 void setOverlaysEnabled(
bool enabled);
312 bool getOverlaysEnabled(
void)
const;
324 void setSkiesEnabled(
bool enabled);
328 bool getSkiesEnabled(
void)
const;
338 void setShadowsEnabled(
bool enabled);
342 bool getShadowsEnabled(
void)
const;
372 virtual void setRenderQueueInvocationSequenceName(
const String& sequenceName);
374 virtual const String& getRenderQueueInvocationSequenceName(
void)
const;
379 void pointOrientedToScreen(
const Vector2 &v,
int orientationMode,
Vector2 &outv);
380 void pointOrientedToScreen(
Real orientedX,
Real orientedY,
int orientationMode,
384 void addListener(Listener* l);
386 void removeListener(Listener* l);