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;
201 void setOrientationMode(
OrientationMode orientationMode,
bool setDefault =
true);
209 static void setDefaultOrientationMode(
OrientationMode orientationMode);
218 void setBackgroundColour(
const ColourValue& colour);
222 const ColourValue& getBackgroundColour(
void)
const;
227 void setDepthClear(
Real depth );
231 Real getDepthClear(
void)
const;
246 bool getClearEveryFrame(
void)
const;
249 unsigned int getClearBuffers(
void)
const;
262 void setAutoUpdated(
bool autoupdate);
266 bool isAutoUpdated()
const;
276 { mMaterialSchemeName = schemeName; }
281 {
return mMaterialSchemeName; }
285 void getActualDimensions(
286 int &left,
int &top,
int &width,
int &height )
const;
288 bool _isUpdated(
void)
const;
289 void _clearUpdatedFlag(
void);
293 unsigned int _getNumRenderedFaces(
void)
const;
297 unsigned int _getNumRenderedBatches(
void)
const;
309 void setOverlaysEnabled(
bool enabled);
313 bool getOverlaysEnabled(
void)
const;
325 void setSkiesEnabled(
bool enabled);
329 bool getSkiesEnabled(
void)
const;
339 void setShadowsEnabled(
bool enabled);
343 bool getShadowsEnabled(
void)
const;
373 virtual void setRenderQueueInvocationSequenceName(
const String& sequenceName);
375 virtual const String& getRenderQueueInvocationSequenceName(
void)
const;
380 void pointOrientedToScreen(
const Vector2 &v,
int orientationMode,
Vector2 &outv);
381 void pointOrientedToScreen(
Real orientedX,
Real orientedY,
int orientationMode,
385 void addListener(Listener* l);
387 void removeListener(Listener* l);
Listener interface so you can be notified of Viewport changes.
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.
virtual void viewportDestroyed(Viewport *viewport)
Notification of when target listening Viewport's is destroyed.
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.
virtual void viewportCameraChanged(Viewport *viewport)
Notification of when a new camera is set to target listening Viewport.
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.
vector< Listener * >::type ListenerList
An abstraction of a viewport, i.e.
String mMaterialSchemeName
Material scheme.
virtual void viewportDimensionsChanged(Viewport *viewport)
Notification of when target listening Viewport's dimensions changed.
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.