Built, renderable section of geometry. More...
#include <OgreManualObject.h>
Public Member Functions | |
ManualObjectSection (ManualObject *parent, const String &materialName, RenderOperation::OperationType opType, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) | |
virtual | ~ManualObjectSection () |
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... | |
bool | get32BitIndices () const |
Get whether we need 32-bit indices. More... | |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. More... | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. More... | |
const LightList & | getLights (void) const |
const MaterialPtr & | getMaterial (void) const |
const String & | getMaterialGroup (void) const |
Retrieve the material group in use. More... | |
const String & | getMaterialName (void) const |
Retrieve the material name in use. More... | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. More... | |
virtual bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
RenderOperation * | getRenderOperation (void) |
Retrieve render operation for manipulation. More... | |
void | getRenderOperation (RenderOperation &op) |
virtual RenderSystemData * | getRenderSystemData () const |
Gets RenderSystem private data. More... | |
Real | getSquaredViewDepth (const Ogre::Camera *) const |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. 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... | |
virtual OGRE_DEPRECATED const Any & | getUserAny (void) const |
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... | |
void | getWorldTransforms (Matrix4 *xform) const |
bool | hasCustomParameter (size_t index) const |
Checks whether a custom value is associated with this Renderable at the given index. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
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... | |
void | removeCustomParameter (size_t index) |
Removes a custom value which is associated with this Renderable at the given index. More... | |
void | set32BitIndices (bool n32) |
Set whether we need 32-bit indices. 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 | setMaterialName (const String &name, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME) |
update the material name in use More... | |
virtual void | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
virtual void | setRenderSystemData (RenderSystemData *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... | |
virtual OGRE_DEPRECATED void | setUserAny (const Any &anything) |
Protected Types | |
typedef map< size_t, Vector4 > ::type | CustomParameterMap |
Protected Attributes | |
bool | m32BitIndices |
CustomParameterMap | mCustomParameters |
String | mGroupName |
MaterialPtr | mMaterial |
String | mMaterialName |
ManualObject * | mParent |
bool | mPolygonModeOverrideable |
RenderOperation | mRenderOperation |
RenderSystemData * | mRenderSystemData |
User objects binding. More... | |
bool | mUseIdentityProjection |
bool | mUseIdentityView |
UserObjectBindings | mUserObjectBindings |
Built, renderable section of geometry.
Definition at line 402 of file OgreManualObject.h.
|
protectedinherited |
Definition at line 414 of file OgreRenderable.h.
Ogre::ManualObject::ManualObjectSection::ManualObjectSection | ( | ManualObject * | parent, |
const String & | materialName, | ||
RenderOperation::OperationType | opType, | ||
const String & | groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME |
||
) |
|
virtual |
|
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.
Definition at line 307 of file OgreRenderable.h.
References Ogre::GpuProgramParameters::_writeRawConstant(), Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::elementCount, and Ogre::GpuProgramParameters::AutoConstantEntry::physicalIndex.
|
inline |
Get whether we need 32-bit indices.
Definition at line 429 of file OgreManualObject.h.
|
inlinevirtualinherited |
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::TerrainQuadTreeNode::Rend, Ogre::SubEntity, Ogre::InstancedGeometry::GeometryBucket, and Ogre::StaticGeometry::GeometryBucket.
Definition at line 224 of file OgreRenderable.h.
|
inlineinherited |
Gets the custom value associated with this Renderable at the given index.
index | Index of the parameter to retrieve. |
Definition at line 268 of file OgreRenderable.h.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
virtual |
Implements Ogre::Renderable.
|
virtual |
Implements Ogre::Renderable.
|
inline |
Retrieve the material group in use.
Definition at line 423 of file OgreManualObject.h.
|
inline |
Retrieve the material name in use.
Definition at line 421 of file OgreManualObject.h.
|
inlinevirtualinherited |
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, Ogre::SubEntity, Ogre::InstancedGeometry::GeometryBucket, Ogre::BaseInstanceBatchVTF, Ogre::InstanceBatchHW, and Ogre::InstanceBatchShader.
Definition at line 153 of file OgreRenderable.h.
|
inlinevirtualinherited |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable.
Definition at line 332 of file OgreRenderable.h.
RenderOperation* Ogre::ManualObject::ManualObjectSection::getRenderOperation | ( | void | ) |
Retrieve render operation for manipulation.
|
virtual |
Implements Ogre::Renderable.
|
inlinevirtualinherited |
Gets RenderSystem private data.
Definition at line 399 of file OgreRenderable.h.
|
virtual |
Implements Ogre::Renderable.
|
inlinevirtualinherited |
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::TerrainQuadTreeNode::Rend, Ogre::InstanceBatch, Ogre::InstancedGeometry::GeometryBucket, Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity.
Definition at line 94 of file OgreRenderable.h.
|
inlineinherited |
Returns whether or not to use an 'identity' projection.
Definition at line 178 of file OgreRenderable.h.
|
inlineinherited |
Returns whether or not to use an 'identity' view.
Definition at line 203 of file OgreRenderable.h.
|
inlinevirtualinherited |
Definition at line 349 of file OgreRenderable.h.
|
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.
Definition at line 355 of file OgreRenderable.h.
|
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.
Definition at line 361 of file OgreRenderable.h.
|
virtual |
Implements Ogre::Renderable.
|
inlineinherited |
Checks whether a custom value is associated with this Renderable at the given index.
index | Index of the parameter to check for existence. |
Definition at line 259 of file OgreRenderable.h.
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inlinevirtualinherited |
Called immediately after the Renderable has been rendered.
Definition at line 128 of file OgreRenderable.h.
|
inlinevirtualinherited |
Called just prior to the Renderable being rendered.
Reimplemented in Ogre::BillboardChain.
Definition at line 123 of file OgreRenderable.h.
|
inlineinherited |
Removes a custom value which is associated with this Renderable at the given index.
index | Index of the parameter to remove. |
Definition at line 250 of file OgreRenderable.h.
|
inline |
Set whether we need 32-bit indices.
Definition at line 427 of file OgreManualObject.h.
|
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. |
Definition at line 241 of file OgreRenderable.h.
void Ogre::ManualObject::ManualObjectSection::setMaterialName | ( | const String & | name, |
const String & | groupName = ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME |
||
) |
update the material name in use
|
inlinevirtualinherited |
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. |
Definition at line 324 of file OgreRenderable.h.
|
inlinevirtualinherited |
Sets RenderSystem private data.
Definition at line 407 of file OgreRenderable.h.
|
inlineinherited |
Sets whether or not to use an 'identity' projection.
Definition at line 164 of file OgreRenderable.h.
|
inlineinherited |
Sets whether or not to use an 'identity' view.
Definition at line 189 of file OgreRenderable.h.
|
inlinevirtualinherited |
Sets any kind of user value on this object.
Definition at line 344 of file OgreRenderable.h.
|
protected |
Definition at line 410 of file OgreManualObject.h.
|
protectedinherited |
Definition at line 415 of file OgreRenderable.h.
|
protected |
Definition at line 407 of file OgreManualObject.h.
|
mutableprotected |
Definition at line 408 of file OgreManualObject.h.
|
protected |
Definition at line 406 of file OgreManualObject.h.
|
protected |
Definition at line 405 of file OgreManualObject.h.
|
protectedinherited |
Definition at line 416 of file OgreRenderable.h.
|
protected |
Definition at line 409 of file OgreManualObject.h.
|
mutableprotectedinherited |
User objects binding.
Definition at line 420 of file OgreRenderable.h.
|
protectedinherited |
Definition at line 417 of file OgreRenderable.h.
|
protectedinherited |
Definition at line 418 of file OgreRenderable.h.
|
protectedinherited |
Definition at line 419 of file OgreRenderable.h.