OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
A viewpoint from which the scene will be rendered. More...
#include <OgreCamera.h>
Classes | |
class | Listener |
Listener interface so you can be notified of Camera events. More... | |
Public Types | |
typedef SharedPtr< RenderSystemData > | RenderSystemDataPtr |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
Camera (const String &name, SceneManager *sm) | |
Standard constructor. More... | |
virtual | ~Camera () |
Standard destructor. More... | |
void | _autoTrack (void) |
Internal method used by OGRE to update auto-tracking cameras. More... | |
MovableObjectFactory * | _getCreator (void) const |
Get the creator of this object, if any (internal use only) More... | |
LightList * | _getLightList () |
Returns a pointer to the current list of lights for this object. More... | |
Real | _getLodBiasInverse (void) const |
Internal method for OGRE to use for LOD calculations. More... | |
SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only) More... | |
unsigned int | _getNumRenderedBatches (void) const |
Internal method to retrieve the number of visible batches in the last render. More... | |
unsigned int | _getNumRenderedFaces (void) const |
Internal method to retrieve the number of visible faces in the last render. More... | |
virtual const Affine3 & | _getParentNodeFullTransform (void) const |
Return the full transformation of the parent sceneNode or the attachingPoint node. More... | |
virtual void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Internal method called to notify the object that it has been attached to a node. More... | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only) More... | |
void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. More... | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only) More... | |
virtual void | _notifyMoved (void) |
Internal method called to notify the object that it has been moved. More... | |
void | _notifyRenderedBatches (unsigned int numbatches) |
Internal method to notify camera of the visible batches in the last render. More... | |
void | _notifyRenderedFaces (unsigned int numfaces) |
Internal method to notify camera of the visible faces in the last render. More... | |
void | _notifyViewport (Viewport *viewport) |
Notifies this camera that a viewport is using it. More... | |
virtual void | _releaseManualHardwareResources () |
Notifies the movable object that hardware resources were lost. More... | |
void | _renderScene (Viewport *vp, bool includeOverlays) |
Tells the Camera to contact the SceneManager to render from it's viewpoint. More... | |
virtual void | _restoreManualHardwareResources () |
Notifies the movable object that hardware resources should be restored. More... | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. More... | |
void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. More... | |
virtual void | addListener (Listener *l) |
Add a listener to this camera. More... | |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | calcViewMatrixRelative (const Vector3 &relPos, Matrix4 &matToUpdate) const |
Calculate a view matrix for this frustum, relative to a potentially dynamic point. More... | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. More... | |
void | detachFromParent (void) |
Detaches an object from a parent SceneNode or TagPoint, if attached. More... | |
void | disableCustomNearClipPlane (void) |
Disables any custom near clip plane. More... | |
void | disableReflection (void) |
Disables reflection modification previously turned on with enableReflection. More... | |
void | enableCustomNearClipPlane (const MovablePlane *plane) |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes. More... | |
void | enableCustomNearClipPlane (const Plane &plane) |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes. More... | |
void | enableReflection (const Plane &p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. More... | |
void | enableReflection (const MovablePlane *p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. More... | |
virtual void | forwardIntersect (const Plane &worldPlane, std::vector< Vector4 > *intersect3d) const |
Forward projects frustum rays to find forward intersection with plane. More... | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. More... | |
Real | getAspectRatio (void) const |
Retrieves the current aspect ratio. More... | |
bool | getAutoAspectRatio (void) const |
Retrieves if AutoAspectRatio is currently set or not. More... | |
const Vector3 & | getAutoTrackOffset (void) const |
Get the auto tracking offset for this camera, if it is auto tracking. More... | |
SceneNode * | getAutoTrackTarget (void) const |
Get the auto tracking target for this camera, if any. More... | |
const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. More... | |
Real | getBoundingRadius (void) const |
Overridden from MovableObject. More... | |
PlaneBoundedVolume | getCameraToViewportBoxVolume (Real screenLeft, Real screenTop, Real screenRight, Real screenBottom, bool includeFarPlane=false) |
Gets a world-space list of planes enclosing a volume based on a viewport rectangle. More... | |
void | getCameraToViewportBoxVolume (Real screenLeft, Real screenTop, Real screenRight, Real screenBottom, PlaneBoundedVolume *outVolume, bool includeFarPlane=false) |
Ray | getCameraToViewportRay (Real screenx, Real screeny) const |
Gets a world space ray as cast from the camera through a viewport position. More... | |
void | getCameraToViewportRay (Real screenx, Real screeny, Ray *outRay) const |
Gets a world space ray as cast from the camera through a viewport position. More... | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. More... | |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. More... | |
Frustum * | getCullingFrustum (void) const |
Returns the custom culling frustum in use. More... | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. More... | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. More... | |
Vector3 | getDerivedDirection (void) const |
Gets the derived direction vector of the camera, including any rotation inherited from a node attachment and reflection matrix. More... | |
const Quaternion & | getDerivedOrientation (void) const |
Gets the derived orientation of the camera, including any rotation inherited from a node attachment and reflection matrix. More... | |
const Vector3 & | getDerivedPosition (void) const |
Gets the derived position of the camera, including any translation inherited from a node attachment and reflection matrix. More... | |
Vector3 | getDerivedRight (void) const |
Gets the derived right vector of the camera, including any rotation inherited from a node attachment and reflection matrix. More... | |
Vector3 | getDerivedUp (void) const |
Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix. More... | |
Vector3 | getDirection (void) const |
Gets the camera's direction. More... | |
EdgeData * | getEdgeList (void) |
Returns details of the edges which might be used to determine a silhouette. More... | |
Real | getFarClipDistance (void) const |
Retrieves the distance from the frustum to the far clipping plane. More... | |
Real | getFocalLength () const |
Returns focal length of frustum. More... | |
const Radian & | getFOVy (void) const |
Retrieves the frustums Y-dimension Field Of View (FOV). More... | |
RealRect | getFrustumExtents () const |
Get the extents of the frustum in view space. More... | |
void | getFrustumExtents (Real &outleft, Real &outright, Real &outtop, Real &outbottom) const |
const Vector2 & | getFrustumOffset () const |
Retrieves the frustum offsets. More... | |
const Plane & | getFrustumPlane (unsigned short plane) const |
Retrieves a specified plane of the frustum (world space). More... | |
virtual const Plane * | getFrustumPlanes (void) const |
Retrieves the clipping planes of the frustum (world space). More... | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. More... | |
uint32 | getLightMask () const |
Get a bitwise mask which will filter the lights affecting this object. More... | |
const LightList & | getLights (void) const |
Overridden from Renderable. More... | |
Listener * | getListener (void) const |
Gets the current listener for this object. More... | |
Real | getLodBias (void) const |
Returns the level-of-detail bias factor currently applied to this camera. More... | |
virtual const Camera * | getLodCamera () const |
Get a pointer to the camera which should be used to determine LOD settings. More... | |
const MaterialPtr & | getMaterial (void) const |
Overridden from Renderable. More... | |
const String & | getMovableType (void) const |
Overridden from MovableObject. More... | |
const String & | getName (void) const |
Returns the name of this object. More... | |
Real | getNearClipDistance (void) const |
Sets the position of the near clipping plane. More... | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. More... | |
const Quaternion & | getOrientation (void) const |
Returns the camera's current orientation. More... | |
const Quaternion & | getOrientationForViewUpdate (void) const |
Get the derived orientation of this frustum. More... | |
OrientationMode | getOrientationMode () const |
Get the orientation mode of the frustum. More... | |
Real | getOrthoWindowHeight () const |
Gets the orthographic window height, for use with orthographic rendering only. More... | |
Real | getOrthoWindowWidth () const |
Gets the orthographic window width, for use with orthographic rendering only. More... | |
Node * | getParentNode (void) const |
Returns the node to which this object is attached. More... | |
SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. More... | |
Real | getPixelDisplayRatio () const |
Returns an estimated ratio between a pixel and the display area it represents. More... | |
PlaneBoundedVolume | getPlaneBoundedVolume () |
Gets a world-space list of planes enclosing the frustum. More... | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. More... | |
PolygonMode | getPolygonMode (void) const |
Retrieves the level of detail that the camera will render. More... | |
bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
const Vector3 & | getPosition (void) const |
Retrieves the camera's position. More... | |
const Vector3 & | getPositionForViewUpdate (void) const |
Get the derived position of this frustum. More... | |
const Matrix4 & | getProjectionMatrix (void) const |
Gets the normal projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules and uses depth range [-1,+1]. More... | |
const Matrix4 & | getProjectionMatrixRS (void) const |
Gets the projection matrix for this frustum adjusted for the current rendersystem specifics (may be right or left-handed, depth range may vary). More... | |
const Matrix4 & | getProjectionMatrixWithRSDepth (void) const |
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules. More... | |
ProjectionType | getProjectionType (void) const |
Retrieves info on the type of projection used (orthographic or perspective). More... | |
uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. More... | |
Vector3 | getRealDirection (void) const |
Gets the real world direction vector of the camera, including any rotation inherited from a node attachment. More... | |
const Quaternion & | getRealOrientation (void) const |
Gets the real world orientation of the camera, including any rotation inherited from a node attachment. More... | |
const Vector3 & | getRealPosition (void) const |
Gets the real world position of the camera, including any translation inherited from a node attachment. More... | |
Vector3 | getRealRight (void) const |
Gets the real world right vector of the camera, including any rotation inherited from a node attachment. More... | |
Vector3 | getRealUp (void) const |
Gets the real world up vector of the camera, including any rotation inherited from a node attachment. More... | |
bool | getReceivesShadows () |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows. More... | |
const Affine3 & | getReflectionMatrix (void) const |
Returns the reflection matrix of the frustum if appropriate. More... | |
const Plane & | getReflectionPlane (void) const |
Returns the reflection plane of the frustum if appropriate. More... | |
Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. More... | |
Real | getRenderingMinPixelSize () const |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
void | getRenderOperation (RenderOperation &op) |
Overridden from Renderable. More... | |
uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity. More... | |
const RenderSystemDataPtr & | getRenderSystemData () const |
Gets RenderSystem private data. More... | |
Vector3 | getRight (void) const |
Gets the camera's right vector. More... | |
SceneManager * | getSceneManager (void) const |
Returns a pointer to the SceneManager this camera is rendering through. More... | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, size_t *indexBufferUsedSize, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
Real | getSquaredViewDepth (const Camera *cam) const |
Overridden from Renderable. More... | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. More... | |
uint32 | getTypeFlags (void) const |
Overridden from MovableObject::getTypeFlags. More... | |
Vector3 | getUp (void) const |
Gets the camera's up vector. More... | |
bool | getUseIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. More... | |
bool | getUseIdentityView (void) const |
Returns whether or not to use an 'identity' view. More... | |
bool | getUseMinPixelSize () const |
Returns whether to use min display size calculations. More... | |
const Any & | getUserAny (void) const |
const Any & | getUserAny (void) const |
virtual bool | getUseRenderingDistance (void) const |
Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. More... | |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
const Affine3 & | getViewMatrix (void) const |
Gets the view matrix for this frustum. More... | |
const Affine3 & | getViewMatrix (bool ownFrustumOnly) const |
Specialised version of getViewMatrix allowing caller to differentiate whether the custom culling frustum should be allowed or not. More... | |
Viewport * | getViewport (void) const |
Get the last viewport which was attached to this camera. More... | |
uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. More... | |
bool | getVisible (void) const |
Gets this object whether to be visible or not, if it has a renderable component. More... | |
const std::vector< Plane > & | getWindowPlanes (void) const |
Gets the window clip planes, only applicable if isWindowSet == true. More... | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. More... | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. More... | |
const Vector3 * | getWorldSpaceCorners (void) const |
Gets the world space corners of the frustum. More... | |
void | getWorldTransforms (Matrix4 *mat) const |
Overridden from Frustum/Renderable. More... | |
bool | hasCustomParameter (size_t index) const |
Checks whether a custom value is associated with this Renderable at the given index. More... | |
bool | hasEdgeList (void) |
Returns whether the object has a valid edge list. More... | |
bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. More... | |
bool | isCustomNearClipPlaneEnabled (void) const |
Is a custom near clip plane in use? More... | |
bool | isCustomProjectionMatrixEnabled (void) const |
Returns whether a custom projection matrix is in use. More... | |
bool | isCustomViewMatrixEnabled (void) const |
Returns whether a custom view matrix is in use. More... | |
bool | isDebugDisplayEnabled (void) const |
Gets whether debug display of this object is enabled. More... | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. More... | |
bool | isParentTagPoint () const |
Gets whether the parent node is a TagPoint (or a SceneNode) More... | |
bool | isReflected (void) const |
Returns whether this frustum is being reflected. More... | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. More... | |
bool | isVisible (const AxisAlignedBox &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. More... | |
bool | isVisible (const Sphere &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. More... | |
bool | isVisible (const Vector3 &vert, FrustumPlane *culledBy=0) const |
Tests whether the given vertex is visible in the Frustum. More... | |
virtual bool | isWindowSet (void) const |
Returns if a viewport window is being used. More... | |
void | lookAt (const Vector3 &targetPoint) |
Points the camera at a location in worldspace. More... | |
void | lookAt (Real x, Real y, Real z) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
void | move (const Vector3 &vec) |
Moves the camera's position by the vector offset provided along world axes. More... | |
void | moveRelative (const Vector3 &vec) |
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation). More... | |
void | pitch (const Radian &angle) |
Pitches the camera up/down anticlockwise around it's local z axis. More... | |
virtual void | postRender (SceneManager *sm, RenderSystem *rsys) |
Called immediately after the Renderable has been rendered. More... | |
virtual bool | preRender (SceneManager *sm, RenderSystem *rsys) |
Called just prior to the Renderable being rendered. More... | |
bool | projectSphere (const Sphere &sphere, Real *left, Real *top, Real *right, Real *bottom) const |
Project a sphere onto the near plane and get the bounding rectangle. More... | |
const LightList & | queryLights (void) const |
Gets a list of lights, ordered relative to how close they are to this movable object. More... | |
void | removeCustomParameter (size_t index) |
Removes a custom value which is associated with this Renderable at the given index. More... | |
virtual void | removeListener (Listener *l) |
Remove a listener to this camera. More... | |
void | removeQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | resetFrustumExtents () |
Reset the frustum extents to be automatically derived from other params. More... | |
virtual void | resetWindow (void) |
Cancel view window. More... | |
void | roll (const Radian &angle) |
Rolls the camera anticlockwise, around its local z axis. More... | |
void | rotate (const Vector3 &axis, const Radian &angle) |
Rotate the camera around an arbitrary axis. More... | |
void | rotate (const Quaternion &q) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
void | setAspectRatio (Real ratio) |
Sets the aspect ratio for the frustum viewport. More... | |
void | setAutoAspectRatio (bool autoratio) |
If set to true a viewport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized. More... | |
void | setAutoTracking (bool enabled, SceneNode *const target=0, const Vector3 &offset=Vector3::ZERO) |
Enables / disables automatic tracking of a SceneNode. More... | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. More... | |
void | setCullingFrustum (Frustum *frustum) |
Tells the camera to use a separate Frustum instance to perform culling. More... | |
void | setCustomParameter (size_t index, const Vector4 &value) |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters. More... | |
void | setCustomProjectionMatrix (bool enable, const Matrix4 &projectionMatrix=Matrix4::IDENTITY) |
Set whether to use a custom projection matrix on this frustum. More... | |
void | setCustomViewMatrix (bool enable, const Affine3 &viewMatrix=Affine3::IDENTITY) |
Set whether to use a custom view matrix on this frustum. More... | |
void | setDebugDisplayEnabled (bool enabled) |
Sets whether or not the debug display of this object is enabled. More... | |
void | setDirection (Real x, Real y, Real z) |
Sets the camera's direction vector. More... | |
void | setDirection (const Vector3 &vec) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
void | setFarClipDistance (Real farDist) |
Sets the distance to the far clipping plane. More... | |
void | setFixedYawAxis (bool useFixed, const Vector3 &fixedAxis=Vector3::UNIT_Y) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. More... | |
void | setFocalLength (Real focalLength=1.0) |
Sets frustum focal length (used in stereo rendering). More... | |
void | setFOVy (const Radian &fovy) |
Sets the Y-dimension Field Of View (FOV) of the frustum. More... | |
void | setFrustumExtents (Real left, Real right, Real top, Real bottom) |
Manually set the extents of the frustum. More... | |
void | setFrustumOffset (const Vector2 &offset) |
Sets frustum offsets, used in stereo rendering. More... | |
void | setFrustumOffset (Real horizontal=0.0, Real vertical=0.0) |
Sets frustum offsets, used in stereo rendering. More... | |
void | setLightMask (uint32 lightMask) |
Set a bitwise mask which will filter the lights affecting this object. More... | |
void | setListener (Listener *listener) |
Sets a listener for this object. More... | |
void | setLodBias (Real factor=1.0) |
Sets the level-of-detail factor for this Camera. More... | |
virtual void | setLodCamera (const Camera *lodCam) |
Set a pointer to the camera which should be used to determine LOD settings. More... | |
void | setMaterial (const MaterialPtr &mat) |
material to use for debug display More... | |
void | setNearClipDistance (Real nearDist) |
Sets the position of the near clipping plane. More... | |
void | setOrientation (const Quaternion &q) |
Sets the camera's orientation. More... | |
void | setOrientationMode (OrientationMode orientationMode) |
Set the orientation mode of the frustum. More... | |
void | setOrthoWindow (Real w, Real h) |
Sets the orthographic window settings, for use with orthographic rendering only. More... | |
void | setOrthoWindowHeight (Real h) |
Sets the orthographic window height, for use with orthographic rendering only. More... | |
void | setOrthoWindowWidth (Real w) |
Sets the orthographic window width, for use with orthographic rendering only. More... | |
void | setPolygonMode (PolygonMode sd) |
Sets the level of rendering detail required from this camera. More... | |
void | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
void | setPosition (Real x, Real y, Real z) |
Sets the camera's position. More... | |
void | setPosition (const Vector3 &vec) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
virtual void | setProjectionType (ProjectionType pt) |
Sets the type of projection to use (orthographic or perspective). More... | |
void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. More... | |
void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. More... | |
void | setRenderingMinPixelSize (Real pixelSize) |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
virtual void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. More... | |
virtual void | setRenderQueueGroupAndPriority (uint8 queueID, ushort priority) |
Sets the render queue group and group priority this entity will be rendered through. More... | |
void | setRenderSystemData (RenderSystemDataPtr val) const |
Sets RenderSystem private data. More... | |
void | setUseIdentityProjection (bool useIdentityProjection) |
Sets whether or not to use an 'identity' projection. More... | |
void | setUseIdentityView (bool useIdentityView) |
Sets whether or not to use an 'identity' view. More... | |
void | setUseMinPixelSize (bool enable) |
Sets whether to use min display size calculations. More... | |
void | setUserAny (const Any &anything) |
void | setUserAny (const Any &anything) |
virtual void | setUseRenderingDistance (bool use) |
Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. More... | |
void | setVisibilityFlags (uint32 flags) |
Sets the visibility flags for this object. More... | |
void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. More... | |
virtual void | setWindow (Real left, Real top, Real right, Real bottom) |
Sets the viewing window inside of viewport. More... | |
virtual void | synchroniseBaseSettingsWith (const Camera *cam) |
Synchronise core camera settings with another. More... | |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false) |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any. More... | |
void | yaw (const Radian &angle) |
Rotates the camera anticlockwise around it's local y axis. More... | |
Static Public Member Functions | |
static void | clearShadowRenderableList (ShadowRenderableList &shadowRenderables) |
Common implementation of releasing shadow renderables. More... | |
static void | extrudeVertices (const HardwareVertexBufferSharedPtr &vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. More... | |
static uint32 | getDefaultQueryFlags () |
Get the default query flags for all future MovableObject instances. More... | |
static uint32 | getDefaultVisibilityFlags () |
Get the default visibility flags for all future MovableObject instances. More... | |
static void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. More... | |
static void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. More... | |
Static Public Attributes | |
static const Real | INFINITE_FAR_PLANE_ADJUST |
Small constant used to reduce far plane projection to avoid inaccuracies. More... | |
Friends | |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, const Camera &c) |
Function for outputting to a stream. More... | |
A viewpoint from which the scene will be rendered.
|
inherited |
|
inherited |
|
inherited |
Ogre::Camera::Camera | ( | const String & | name, |
SceneManager * | sm | ||
) |
Standard constructor.
|
virtual |
Standard destructor.
|
virtual |
Add a listener to this camera.
|
virtual |
Remove a listener to this camera.
SceneManager* Ogre::Camera::getSceneManager | ( | void | ) | const |
Returns a pointer to the SceneManager this camera is rendering through.
void Ogre::Camera::setPolygonMode | ( | PolygonMode | sd | ) |
Sets the level of rendering detail required from this camera.
PolygonMode Ogre::Camera::getPolygonMode | ( | void | ) | const |
Retrieves the level of detail that the camera will render.
Sets the camera's position.
void Ogre::Camera::setPosition | ( | const Vector3 & | vec | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const Vector3& Ogre::Camera::getPosition | ( | void | ) | const |
Retrieves the camera's position.
void Ogre::Camera::move | ( | const Vector3 & | vec | ) |
Moves the camera's position by the vector offset provided along world axes.
void Ogre::Camera::moveRelative | ( | const Vector3 & | vec | ) |
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation).
Sets the camera's direction vector.
void Ogre::Camera::setDirection | ( | const Vector3 & | vec | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Vector3 Ogre::Camera::getDirection | ( | void | ) | const |
Gets the camera's direction.
Vector3 Ogre::Camera::getUp | ( | void | ) | const |
Gets the camera's up vector.
Vector3 Ogre::Camera::getRight | ( | void | ) | const |
Gets the camera's right vector.
void Ogre::Camera::lookAt | ( | const Vector3 & | targetPoint | ) |
Points the camera at a location in worldspace.
targetPoint | A vector specifying the look at point. |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void Ogre::Camera::roll | ( | const Radian & | angle | ) |
Rolls the camera anticlockwise, around its local z axis.
void Ogre::Camera::yaw | ( | const Radian & | angle | ) |
Rotates the camera anticlockwise around it's local y axis.
void Ogre::Camera::pitch | ( | const Radian & | angle | ) |
Pitches the camera up/down anticlockwise around it's local z axis.
Rotate the camera around an arbitrary axis.
void Ogre::Camera::rotate | ( | const Quaternion & | q | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void Ogre::Camera::setFixedYawAxis | ( | bool | useFixed, |
const Vector3 & | fixedAxis = Vector3::UNIT_Y |
||
) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
useFixed | If true , the axis passed in the second parameter will always be the yaw axis no matter what the camera orientation. If false, the camera yaws around the local Y. |
fixedAxis | The axis to use if the first parameter is true. |
const Quaternion& Ogre::Camera::getOrientation | ( | void | ) | const |
Returns the camera's current orientation.
void Ogre::Camera::setOrientation | ( | const Quaternion & | q | ) |
Sets the camera's orientation.
void Ogre::Camera::_renderScene | ( | Viewport * | vp, |
bool | includeOverlays | ||
) |
Tells the Camera to contact the SceneManager to render from it's viewpoint.
vp | The viewport to render to |
includeOverlays | Whether or not any overlay objects should be included |
void Ogre::Camera::_notifyRenderedFaces | ( | unsigned int | numfaces | ) |
Internal method to notify camera of the visible faces in the last render.
void Ogre::Camera::_notifyRenderedBatches | ( | unsigned int | numbatches | ) |
Internal method to notify camera of the visible batches in the last render.
unsigned int Ogre::Camera::_getNumRenderedFaces | ( | void | ) | const |
Internal method to retrieve the number of visible faces in the last render.
unsigned int Ogre::Camera::_getNumRenderedBatches | ( | void | ) | const |
Internal method to retrieve the number of visible batches in the last render.
const Quaternion& Ogre::Camera::getDerivedOrientation | ( | void | ) | const |
Gets the derived orientation of the camera, including any rotation inherited from a node attachment and reflection matrix.
const Vector3& Ogre::Camera::getDerivedPosition | ( | void | ) | const |
Gets the derived position of the camera, including any translation inherited from a node attachment and reflection matrix.
Vector3 Ogre::Camera::getDerivedDirection | ( | void | ) | const |
Gets the derived direction vector of the camera, including any rotation inherited from a node attachment and reflection matrix.
Vector3 Ogre::Camera::getDerivedUp | ( | void | ) | const |
Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix.
Vector3 Ogre::Camera::getDerivedRight | ( | void | ) | const |
Gets the derived right vector of the camera, including any rotation inherited from a node attachment and reflection matrix.
const Quaternion& Ogre::Camera::getRealOrientation | ( | void | ) | const |
Gets the real world orientation of the camera, including any rotation inherited from a node attachment.
const Vector3& Ogre::Camera::getRealPosition | ( | void | ) | const |
Gets the real world position of the camera, including any translation inherited from a node attachment.
Vector3 Ogre::Camera::getRealDirection | ( | void | ) | const |
Gets the real world direction vector of the camera, including any rotation inherited from a node attachment.
Vector3 Ogre::Camera::getRealUp | ( | void | ) | const |
Gets the real world up vector of the camera, including any rotation inherited from a node attachment.
Vector3 Ogre::Camera::getRealRight | ( | void | ) | const |
Gets the real world right vector of the camera, including any rotation inherited from a node attachment.
|
virtual |
Overridden from Frustum/Renderable.
Implements Ogre::Renderable.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
void Ogre::Camera::setAutoTracking | ( | bool | enabled, |
SceneNode *const | target = 0 , |
||
const Vector3 & | offset = Vector3::ZERO |
||
) |
Enables / disables automatic tracking of a SceneNode.
enabled | If true, the Camera will track the SceneNode supplied as the next parameter (cannot be null). If false the camera will cease tracking and will remain in it's current orientation. |
target | Pointer to the SceneNode which this Camera will track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. |
offset | If supplied, the camera targets this point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. |
void Ogre::Camera::setLodBias | ( | Real | factor = 1.0 | ) |
Sets the level-of-detail factor for this Camera.
factor | The factor to apply to the usual level of detail calculation. Higher values increase the detail, so 2.0 doubles the normal detail and 0.5 halves it. |
Real Ogre::Camera::getLodBias | ( | void | ) | const |
Returns the level-of-detail bias factor currently applied to this camera.
|
virtual |
Set a pointer to the camera which should be used to determine LOD settings.
|
virtual |
Get a pointer to the camera which should be used to determine LOD settings.
Gets a world space ray as cast from the camera through a viewport position.
screenx,screeny | The x and y position at which the ray should intersect the viewport, in normalised screen coordinates [0,1] |
Gets a world space ray as cast from the camera through a viewport position.
screenx,screeny | The x and y position at which the ray should intersect the viewport, in normalised screen coordinates [0,1] |
outRay | Ray instance to populate with result |
PlaneBoundedVolume Ogre::Camera::getCameraToViewportBoxVolume | ( | Real | screenLeft, |
Real | screenTop, | ||
Real | screenRight, | ||
Real | screenBottom, | ||
bool | includeFarPlane = false |
||
) |
Gets a world-space list of planes enclosing a volume based on a viewport rectangle.
screenLeft,screenTop,screenRight,screenBottom | The bounds of the on-screen rectangle, expressed in normalised screen coordinates [0,1] |
includeFarPlane | If true, the volume is truncated by the camera far plane, by default it is left open-ended |
void Ogre::Camera::getCameraToViewportBoxVolume | ( | Real | screenLeft, |
Real | screenTop, | ||
Real | screenRight, | ||
Real | screenBottom, | ||
PlaneBoundedVolume * | outVolume, | ||
bool | includeFarPlane = false |
||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Real Ogre::Camera::_getLodBiasInverse | ( | void | ) | const |
Internal method for OGRE to use for LOD calculations.
void Ogre::Camera::_autoTrack | ( | void | ) |
Internal method used by OGRE to update auto-tracking cameras.
Sets the viewing window inside of viewport.
left | Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 0). |
top | Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 0). |
right | Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 1). |
bottom | Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 1). |
|
virtual |
Cancel view window.
|
inlinevirtual |
Returns if a viewport window is being used.
const std::vector<Plane>& Ogre::Camera::getWindowPlanes | ( | void | ) | const |
Gets the window clip planes, only applicable if isWindowSet == true.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
inline |
Get the auto tracking target for this camera, if any.
|
inline |
Get the auto tracking offset for this camera, if it is auto tracking.
|
inline |
Get the last viewport which was attached to this camera.
|
inline |
Notifies this camera that a viewport is using it.
void Ogre::Camera::setAutoAspectRatio | ( | bool | autoratio | ) |
If set to true a viewport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized.
bool Ogre::Camera::getAutoAspectRatio | ( | void | ) | const |
Retrieves if AutoAspectRatio is currently set or not.
|
inline |
Tells the camera to use a separate Frustum instance to perform culling.
frustum | Pointer to a frustum to use; this can either be a manual Frustum instance (which you can attach to scene nodes like any other MovableObject), or another camera. If you pass 0 to this method it reverts the camera to normal behaviour. |
|
inline |
Returns the custom culling frustum in use.
|
virtual |
Forward projects frustum rays to find forward intersection with plane.
|
virtual |
Tests whether the given container is visible in the Frustum.
bound | Bounding box to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented from Ogre::Frustum.
Reimplemented in Ogre::PCZCamera.
|
virtual |
Tests whether the given container is visible in the Frustum.
bound | Bounding sphere to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented from Ogre::Frustum.
|
virtual |
Tests whether the given vertex is visible in the Frustum.
vert | Vertex to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented from Ogre::Frustum.
|
virtual |
Gets the world space corners of the frustum.
Reimplemented from Ogre::Frustum.
|
virtual |
Retrieves a specified plane of the frustum (world space).
Reimplemented from Ogre::Frustum.
|
virtual |
Project a sphere onto the near plane and get the bounding rectangle.
sphere | The world-space sphere to project. |
left | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
top | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
right | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
bottom | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
true
if the sphere was projected to a subset of the near plane, false
if the entire near plane was contained. Reimplemented from Ogre::Frustum.
Real Ogre::Camera::getNearClipDistance | ( | void | ) | const |
Sets the position of the near clipping plane.
Real Ogre::Camera::getFarClipDistance | ( | void | ) | const |
Retrieves the distance from the frustum to the far clipping plane.
const Affine3& Ogre::Camera::getViewMatrix | ( | void | ) | const |
Gets the view matrix for this frustum.
Mainly for use by OGRE internally.
const Affine3& Ogre::Camera::getViewMatrix | ( | bool | ownFrustumOnly | ) | const |
Specialised version of getViewMatrix allowing caller to differentiate whether the custom culling frustum should be allowed or not.
|
inlinevirtual |
Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image.
The default behaviour is to use it.
use | True to use the rendering distance, false not to. |
|
inlinevirtual |
Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image.
|
virtual |
Synchronise core camera settings with another.
|
virtual |
Get the derived position of this frustum.
Reimplemented from Ogre::Frustum.
|
virtual |
Get the derived orientation of this frustum.
Reimplemented from Ogre::Frustum.
|
inline |
Sets whether to use min display size calculations.
When active, objects that derive from MovableObject whose size on the screen is less then a MovableObject::mMinPixelSize will not be rendered.
|
inline |
Returns whether to use min display size calculations.
|
inline |
Returns an estimated ratio between a pixel and the display area it represents.
For orthographic cameras this function returns the amount of meters covered by a single pixel along the vertical axis. For perspective cameras the value returned is the amount of meters covered by a single pixel per meter distance from the camera.
|
inherited |
Sets the Y-dimension Field Of View (FOV) of the frustum.
|
inherited |
Retrieves the frustums Y-dimension Field Of View (FOV).
|
inherited |
Sets the position of the near clipping plane.
nearDist | The distance to the near clipping plane from the frustum in world coordinates. |
|
inherited |
Sets the distance to the far clipping plane.
farDist | The distance to the far clipping plane from the frustum in world coordinates.If you specify 0, this means an infinite view distance which is useful especially when projecting shadows; but be careful not to use a near distance too close. |
|
inherited |
Sets the aspect ratio for the frustum viewport.
|
inherited |
Retrieves the current aspect ratio.
|
inherited |
Sets frustum offsets, used in stereo rendering.
offset | The horizontal and vertical plane offsets. |
Sets frustum offsets, used in stereo rendering.
horizontal | The horizontal plane offset. |
vertical | The vertical plane offset. |
|
inherited |
Retrieves the frustum offsets.
|
inherited |
Sets frustum focal length (used in stereo rendering).
focalLength | The distance to the focal plane from the frustum in world coordinates. |
|
inherited |
Returns focal length of frustum.
Manually set the extents of the frustum.
left,right,top,bottom | The position where the side clip planes intersect the near clip plane, in eye space |
|
inherited |
Reset the frustum extents to be automatically derived from other params.
|
inherited |
Get the extents of the frustum in view space.
|
inherited |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inherited |
Gets the projection matrix for this frustum adjusted for the current rendersystem specifics (may be right or left-handed, depth range may vary).
|
inherited |
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules.
|
inherited |
Gets the normal projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules and uses depth range [-1,+1].
|
inherited |
Calculate a view matrix for this frustum, relative to a potentially dynamic point.
Mainly for use by OGRE internally when using camera-relative rendering for frustums that are not the centre (e.g. texture projection)
|
inherited |
Set whether to use a custom view matrix on this frustum.
enable | If true , the custom view matrix passed as the second parameter will be used in preference to an auto calculated one. If false, the frustum will revert to auto calculating the view matrix. |
viewMatrix | The custom view matrix to use |
|
inlineinherited |
Returns whether a custom view matrix is in use.
References Ogre::Matrix4::IDENTITY.
|
inherited |
Set whether to use a custom projection matrix on this frustum.
enable | If true , the custom projection matrix passed as the second parameter will be used in preference to an auto calculated one. If false , the frustum will revert to auto calculating the projection matrix. |
projectionMatrix | The custom view matrix to use. |
|
inlineinherited |
Returns whether a custom projection matrix is in use.
References Ogre::MovableObject::isVisible().
|
virtualinherited |
Retrieves the clipping planes of the frustum (world space).
|
virtualinherited |
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::StaticGeometry::Region.
Referenced by Ogre::Frustum::isCustomProjectionMatrixEnabled().
|
virtualinherited |
Overridden from MovableObject::getTypeFlags.
Reimplemented from Ogre::MovableObject.
|
virtualinherited |
|
virtualinherited |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
virtualinherited |
Overridden from MovableObject.
Reimplemented from Ogre::MovableObject.
|
inherited |
material to use for debug display
|
virtualinherited |
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtualinherited |
Overridden from Renderable.
Implements Ogre::Renderable.
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtualinherited |
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtualinherited |
Sets the type of projection to use (orthographic or perspective).
Default is perspective.
Reimplemented in Ogre::PCZCamera.
|
inherited |
Retrieves info on the type of projection used (orthographic or perspective).
Sets the orthographic window settings, for use with orthographic rendering only.
w | The width of the view window in world units. |
h | The height of the view window in world units. |
|
inherited |
Sets the orthographic window height, for use with orthographic rendering only.
h | The height of the view window in world units. |
|
inherited |
Sets the orthographic window width, for use with orthographic rendering only.
w | The width of the view window in world units. |
|
inherited |
Gets the orthographic window height, for use with orthographic rendering only.
|
inherited |
Gets the orthographic window width, for use with orthographic rendering only.
|
inherited |
Modifies this frustum so it always renders from the reflection of itself through the plane specified.
|
inherited |
Modifies this frustum so it always renders from the reflection of itself through the plane specified.
Note that this version of the method links to a plane so that changes to it are picked up automatically. It is important that this plane continues to exist whilst this object does; do not destroy the plane before the frustum.
|
inherited |
Disables reflection modification previously turned on with enableReflection.
|
inlineinherited |
Returns whether this frustum is being reflected.
|
inlineinherited |
Returns the reflection matrix of the frustum if appropriate.
|
inlineinherited |
Returns the reflection plane of the frustum if appropriate.
|
inherited |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes.
plane | The plane to link to to perform the clipping. This plane must continue to exist while the camera is linked to it; do not destroy it before the frustum. |
|
inherited |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes.
plane | The plane to link to to perform the clipping. This plane must continue to exist while the camera is linked to it; do not destroy it before the frustum. |
|
inherited |
Disables any custom near clip plane.
|
inlineinherited |
Is a custom near clip plane in use?
|
virtualinherited |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any.
visitor | Pointer to a class implementing the Renderable::Visitor interface which will be called back for each Renderable which will be queued. Bear in mind that the state of the Renderable instances may not be finalised depending on when you call this. |
debugRenderables | If false, only regular renderables will be visited (those for normal display). If true, debug renderables will be included too. |
Implements Ogre::MovableObject.
|
inherited |
Gets a world-space list of planes enclosing the frustum.
|
inherited |
Set the orientation mode of the frustum.
Default is OR_DEGREE_0
|
inherited |
Get the orientation mode of the frustum.
|
inlinevirtualinherited |
Notify the object of it's creator (internal use only)
|
inlineinherited |
Get the creator of this object, if any (internal use only)
|
inlinevirtualinherited |
Notify the object of it's manager (internal use only)
|
inlineinherited |
Get the manager of this object, if any (internal use only)
|
inlinevirtualinherited |
Notifies the movable object that hardware resources were lost.
Reimplemented in Ogre::BillboardSet, Ogre::StaticGeometry::Region, Ogre::Entity, and Ogre::ManualObject.
|
inlinevirtualinherited |
Notifies the movable object that hardware resources should be restored.
Reimplemented in Ogre::StaticGeometry::Region, and Ogre::Entity.
|
inlineinherited |
Returns the name of this object.
|
inlineinherited |
Returns the node to which this object is attached.
|
inherited |
Returns the scene node to which this object is attached.
|
inlineinherited |
|
virtualinherited |
Internal method called to notify the object that it has been attached to a node.
Reimplemented in Ogre::Entity, Ogre::ParticleSystem, Ogre::Light, Ogre::PortalBase, and Ogre::InstancedEntity.
Referenced by Ogre::PortalBase::_notifyAttached().
|
inlineinherited |
|
inherited |
|
virtualinherited |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
Reimplemented in Ogre::InstancedEntity.
|
virtualinherited |
Internal method called to notify the object that it has been moved.
Reimplemented in Ogre::Light, Ogre::PortalBase, Ogre::InstancedEntity, and Ogre::PCZLight.
|
virtualinherited |
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
virtualinherited |
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
inlineinherited |
Tells this object whether to be visible or not, if it has a renderable component.
Referenced by Ogre::Light::setVisible().
|
inlineinherited |
Gets this object whether to be visible or not, if it has a renderable component.
|
inlineinherited |
Sets the distance at which the object is no longer rendered.
dist | Distance beyond which the object will not be rendered (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Gets the distance at which batches are no longer rendered.
|
inlineinherited |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
pixelSize | Number of minimum pixels (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
inlineinherited |
Sets any kind of user value on this object.
|
inlineinherited |
Sets any kind of user value on this object.
Referenced by Ogre::InstanceBatch::getRenderOperation().
|
inlineinherited |
Retrieves the custom user value associated with this object.
|
inlineinherited |
Retrieves the custom user value associated with this object.
Referenced by Ogre::InstanceBatch::getRenderOperation().
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
virtualinherited |
Sets the render queue group this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
Reimplemented in Ogre::ParticleSystem, and Ogre::Entity.
|
virtualinherited |
Sets the render queue group and group priority this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
priority | The priority within a group to use. |
Reimplemented in Ogre::ParticleSystem, and Ogre::Entity.
|
inlineinherited |
Gets the queue group for this entity.
|
virtualinherited |
Return the full transformation of the parent sceneNode or the attachingPoint node.
Reimplemented in Ogre::InstancedEntity.
|
inlineinherited |
Sets the query flags for this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the query flags relevant for this object.
|
inlinestaticinherited |
Set the default query flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default query flags for all future MovableObject instances.
|
inlineinherited |
Sets the visibility flags for this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the visibility flags relevant for this object.
|
inlinestaticinherited |
Set the default visibility flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default visibility flags for all future MovableObject instances.
|
inlineinherited |
Sets a listener for this object.
|
inlineinherited |
Gets the current listener for this object.
|
inherited |
Gets a list of lights, ordered relative to how close they are to this movable object.
|
inlineinherited |
Get a bitwise mask which will filter the lights affecting this object.
|
inherited |
Set a bitwise mask which will filter the lights affecting this object.
|
inlineinherited |
Returns a pointer to the current list of lights for this object.
|
inlinevirtualinherited |
Returns details of the edges which might be used to determine a silhouette.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
inlinevirtualinherited |
Returns whether the object has a valid edge list.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not this object will cast shadows.
|
inlinevirtualinherited |
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster.
|
inherited |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows.
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not the debug display of this object is enabled.
|
inlineinherited |
Gets whether debug display of this object is enabled.
|
staticinherited |
Common implementation of releasing shadow renderables.
|
staticinherited |
Utility method for extruding vertices based on a light.
vertexBuffer | The vertex buffer containing ONLY xyz position values, which must be originalVertexCount * 2 * 3 floats long. |
originalVertexCount | The count of the original number of vertices, i.e. the number in the mesh, not counting the doubling which has already been done (by VertexData::prepareForShadowVolume) to provide the extruded area of the buffer. |
lightPos | 4D light position in object space, when w=0.0f this represents a directional light. |
extrudeDist | The distance to extrude. |
|
inlineinherited |
Gets a list of animable value names for this object.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::InstanceBatch, Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity.
|
inlinevirtualinherited |
Called just prior to the Renderable being rendered.
Reimplemented in Ogre::BillboardChain.
|
inlinevirtualinherited |
Called immediately after the Renderable has been rendered.
|
inlinevirtualinherited |
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, Ogre::SubEntity, Ogre::BaseInstanceBatchVTF, Ogre::InstanceBatchHW, and Ogre::InstanceBatchShader.
|
inlineinherited |
Sets whether or not to use an 'identity' projection.
|
inlineinherited |
Returns whether or not to use an 'identity' projection.
|
inlineinherited |
Sets whether or not to use an 'identity' view.
|
inlineinherited |
Returns whether or not to use an 'identity' view.
|
inlinevirtualinherited |
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::SubEntity, and Ogre::StaticGeometry::GeometryBucket.
|
inlineinherited |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
index | The index with which to associate the value. Note that this does not have to start at 0, and can include gaps. It also has no direct correlation with a GPU program parameter index - the mapping between the two is performed by the ACT_CUSTOM entry, if that is used. |
value | The value to associate. |
|
inlineinherited |
Removes a custom value which is associated with this Renderable at the given index.
index | Index of the parameter to remove. |
|
inlineinherited |
Checks whether a custom value is associated with this Renderable at the given index.
index | Index of the parameter to check for existence. |
|
inlineinherited |
Gets the custom value associated with this Renderable at the given index.
index | Index of the parameter to retrieve. |
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
constantEntry | The auto constant entry referring to the parameter being updated |
params | The parameters object which this method should call to set the updated parameters. |
Reimplemented in Ogre::SubEntity.
References Ogre::GpuProgramParameters::_writeRawConstant(), Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::elementCount, and Ogre::GpuProgramParameters::AutoConstantEntry::physicalIndex.
|
inlineinherited |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
override | true means that a lower camera detail will override this renderables detail level, false means it won't. |
|
inlineinherited |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Referenced by Ogre::BorderRenderable::getPolygonModeOverrideable().
|
inlineinherited |
Gets RenderSystem private data.
|
inlineinherited |
Sets RenderSystem private data.
|
friend |
Function for outputting to a stream.
|
staticinherited |
Small constant used to reduce far plane projection to avoid inaccuracies.