#include <OgreRenderable.h>
Inheritance diagram for Ogre::Renderable:
Public Methods | |
virtual | ~Renderable () |
Virtual destructor needed as class has virtual methods. | |
virtual Material * | getMaterial (void) const=0 |
Retrieves a pointer 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 SceneDetailLevel | getRenderDetail () const |
Returns the preferred rasterisation mode 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. | |
Protected Types | |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Attributes | |
CustomParameterMap | mCustomParameters |
Static Protected Attributes | |
const PlaneList | msDummyPlaneList |
Note that deciding whether to put these objects in the rendering pipeline is done from the more specific classes e.g. entities. Only once it is decided that the specific class is to be rendered is the abstract version created (could be more than one per visible object) and pushed onto the rendering queue.
Definition at line 52 of file OgreRenderable.h.
|
Definition at line 232 of file OgreRenderable.h. |
|
Virtual destructor needed as class has virtual methods.
Definition at line 56 of file OgreRenderable.h. |
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::TerrainRenderable. Definition at line 218 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, params, and Ogre::GpuProgramParameters::setConstant(). Referenced by Ogre::GpuProgramParameters::_updateAutoParamsNoLights(). |
|
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::SubEntity. Definition at line 153 of file OgreRenderable.h. Referenced by Ogre::SceneManager::validateRenderableForRendering(). |
|
Definition at line 145 of file OgreRenderable.h. References Ogre::PlaneList. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 179 of file OgreRenderable.h. References Except. |
|
Gets a list of lights, ordered relative to how close they are to this renderable.
Implemented in Ogre::BillboardSet, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::TagPoint, Ogre::BorderRenderable, and Ogre::TerrainRenderable. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Retrieves a pointer to the material this renderable object uses.
Implemented in Ogre::BillboardSet, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::BorderRenderable, and Ogre::TerrainRenderable. Referenced by Ogre::RenderPriorityGroup::addRenderable(), and Ogre::RenderQueue::addRenderable(). |
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 137 of file OgreRenderable.h. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::SubEntity, and Ogre::BorderRenderable. Definition at line 103 of file OgreRenderable.h. Referenced by Ogre::AutoParamDataSource::getWorldMatrix(), Ogre::AutoParamDataSource::getWorldMatrixArray(), Ogre::AutoParamDataSource::getWorldMatrixCount(), and Ogre::SceneManager::renderSingleObject(). |
|
Returns the preferred rasterisation mode of this renderable.
Reimplemented in Ogre::SubEntity. Definition at line 134 of file OgreRenderable.h. References Ogre::SceneDetailLevel, and Ogre::SDL_SOLID. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Gets the render operation required to send this object to the frame buffer.
Implemented in Ogre::BillboardSet, Ogre::Frustum, Ogre::Node, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::BorderRenderable, Ogre::PanelGuiElement, Ogre::TextAreaGuiElement, Ogre::TTYGuiElement, Ogre::OctreeNode, and Ogre::TerrainRenderable. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns the camera-relative squared depth of this renderable.
Implemented in Ogre::BillboardSet, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, Ogre::BorderRenderable, and Ogre::TerrainRenderable. Referenced by Ogre::RenderPriorityGroup::TransparentQueueItemLess::operator()(). |
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::SubEntity. Definition at line 68 of file OgreRenderable.h. Referenced by Ogre::RenderPriorityGroup::addRenderable(). |
|
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::BillboardSet, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::ParticleSystem, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, Ogre::BorderRenderable, 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::BillboardSet, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::ParticleSystem, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, Ogre::BorderRenderable, and Ogre::TerrainRenderable. |
|
Gets the world transform matrix / matrices for this renderable object.
Implemented in Ogre::BillboardSet, Ogre::Entity::EntityShadowRenderable, Ogre::Frustum, Ogre::GuiElement, Ogre::Node, Ogre::ParticleSystem, Ogre::Rectangle2D, Ogre::ShadowRenderable, Ogre::SimpleRenderable, Ogre::SubEntity, Ogre::WireBoundingBox, Ogre::BorderRenderable, and Ogre::TerrainRenderable. Referenced by Ogre::AutoParamDataSource::getWorldMatrix(), Ogre::AutoParamDataSource::getWorldMatrixArray(), Ogre::AutoParamDataSource::getWorldMatrixCount(), and Ogre::SceneManager::renderSingleObject(). |
|
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 170 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::GuiElement, Ogre::Rectangle2D, and Ogre::BorderRenderable. Definition at line 113 of file OgreRenderable.h. Referenced by Ogre::SceneManager::useRenderableViewProjMode(). |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::GuiElement, Ogre::Rectangle2D, and Ogre::BorderRenderable. Definition at line 123 of file OgreRenderable.h. Referenced by Ogre::SceneManager::useRenderableViewProjMode(). |
|
Definition at line 233 of file OgreRenderable.h. |
|
Definition at line 45 of file OgreRenderSystem.cpp. |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:28 2004