#include <OgreRenderable.h>
Inheritance diagram for Ogre::Renderable:
Public Member Functions | |
Renderable () | |
virtual | ~Renderable () |
Virtual destructor needed as class has virtual methods. | |
virtual const MaterialPtr & | getMaterial (void) const=0 |
Retrieves a weak reference to the material this renderable object uses. | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. | |
virtual void | getRenderOperation (RenderOperation &op)=0 |
Gets the render operation required to send this object to the frame buffer. | |
virtual void | getWorldTransforms (Matrix4 *xform) const=0 |
Gets the world transform matrix / matrices for this renderable object. | |
virtual const Quaternion & | getWorldOrientation (void) const=0 |
Gets the worldspace orientation of this renderable; this is used in order to more efficiently update parameters to vertex & fragment programs, since inverting Quaterion and Vector in order to derive object-space positions / directions for cameras and lights is much more efficient than inverting a complete 4x4 matrix, and also eliminates problems introduced by scaling. | |
virtual const Vector3 & | getWorldPosition (void) const=0 |
Gets the worldspace orientation of this renderable; this is used in order to more efficiently update parameters to vertex & fragment programs, since inverting Quaterion and Vector in order to derive object-space positions / directions for cameras and lights is much more efficient than inverting a complete 4x4 matrix, and also eliminates problems introduced by scaling. | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. | |
virtual bool | useIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | useIdentityView (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual Real | getSquaredViewDepth (const Camera *cam) const=0 |
Returns the camera-relative squared depth of this renderable. | |
virtual bool | getNormaliseNormals (void) const |
Returns whether or not this Renderable wishes the hardware to normalise normals. | |
virtual const LightList & | getLights (void) const=0 |
Gets a list of lights, ordered relative to how close they are to this renderable. | |
virtual const PlaneList & | getClipPlanes () const |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. | |
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. | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. | |
virtual void | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
virtual bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
Protected Types | |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Attributes | |
CustomParameterMap | mCustomParameters |
bool | mPolygonModeOverrideable |
Static Protected Attributes | |
const PlaneList | msDummyPlaneList |
Definition at line 52 of file OgreRenderable.h.
|
Definition at line 247 of file OgreRenderable.h. |
|
Definition at line 55 of file OgreRenderable.h. |
|
Virtual destructor needed as class has virtual methods.
Definition at line 57 of file OgreRenderable.h. |
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::SubEntity, and Ogre::TerrainRenderable. Definition at line 215 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, and Ogre::GpuProgramParameters::setConstant(). |
|
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 150 of file OgreRenderable.h. |
|
Definition at line 142 of file OgreRenderable.h. References Ogre::PlaneList. |
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 176 of file OgreRenderable.h. References OGRE_EXCEPT. |
|
Gets a list of lights, ordered relative to how close they are to this renderable.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::Node, Ogre::OverlayElement, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::SubEntity, Ogre::TagPoint, and Ogre::TerrainRenderable. |
|
Retrieves a weak reference to the material this renderable object uses.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::Node, Ogre::OverlayElement, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::SubEntity, and Ogre::TerrainRenderable. |
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 134 of file OgreRenderable.h. |
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, and Ogre::SubEntity. Definition at line 104 of file OgreRenderable.h. |
|
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable. Definition at line 239 of file OgreRenderable.h. |
|
Gets the render operation required to send this object to the frame buffer.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::Node, Ogre::PanelOverlayElement, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::SubEntity, Ogre::TextAreaOverlayElement, Ogre::OctreeNode, and Ogre::TerrainRenderable. |
|
Returns the camera-relative squared depth of this renderable.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Frustum, Ogre::Node, Ogre::OverlayElement, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::SubEntity, Ogre::WireBoundingBox, and Ogre::TerrainRenderable. Referenced by Ogre::QueuedRenderableCollection::RadixSortFunctorDistance::operator()(), and Ogre::QueuedRenderableCollection::DepthSortDescendingLess::operator()(). |
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 69 of file OgreRenderable.h. |
|
Gets the worldspace orientation of this renderable; this is used in order to more efficiently update parameters to vertex & fragment programs, since inverting Quaterion and Vector in order to derive object-space positions / directions for cameras and lights is much more efficient than inverting a complete 4x4 matrix, and also eliminates problems introduced by scaling.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::ManualObject::ManualObjectSectionShadowRenderable, Ogre::Node, Ogre::OverlayElement, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::StaticGeometry::Region::RegionShadowRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, and Ogre::TerrainRenderable. |
|
Gets the worldspace orientation of this renderable; this is used in order to more efficiently update parameters to vertex & fragment programs, since inverting Quaterion and Vector in order to derive object-space positions / directions for cameras and lights is much more efficient than inverting a complete 4x4 matrix, and also eliminates problems introduced by scaling.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::ManualObject::ManualObjectSectionShadowRenderable, Ogre::Node, Ogre::OverlayElement, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::StaticGeometry::Region::RegionShadowRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, and Ogre::TerrainRenderable. |
|
Gets the world transform matrix / matrices for this renderable object.
Implemented in Ogre::BillboardChain, Ogre::BillboardSet, Ogre::BorderRenderable, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::ManualObject::ManualObjectSection, Ogre::ManualObject::ManualObjectSectionShadowRenderable, Ogre::Node, Ogre::OverlayElement, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::StaticGeometry::GeometryBucket, Ogre::StaticGeometry::Region::RegionShadowRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, and Ogre::TerrainRenderable. |
|
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
Definition at line 167 of file OgreRenderable.h. |
|
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Definition at line 231 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 114 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 124 of file OgreRenderable.h. |
|
Definition at line 248 of file OgreRenderable.h. |
|
Definition at line 249 of file OgreRenderable.h. |
|
Definition at line 246 of file OgreRenderable.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:42:02 2006