#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| DIOGREMaterial * | GetMaterial (void) |
| Retrieves a weak reference to the material this renderable object uses. | |
| DIOGRETechnique * | GetTechnique (void) |
| Retrieves a pointer to the Material Technique this renderable object uses. | |
| void | GetWorldTransforms (out_Matrix4f *xform) |
| Gets the render operation required to send this object to the frame buffer. | |
| void | GetWorldOrientation (out_Quaternionf *orient) |
| 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. | |
| void | GetWorldPosition (out_Vector3f *pos) |
| 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. | |
| unsigned short | GetNumWorldTransforms (void) |
| Returns the number of world transform matrices this renderable requires. | |
| bool | getUseIdentityProjection (void) |
| Returns whether or not to use an 'identity' projection. | |
| bool | getUseIdentityView (void) |
| Returns whether or not to use an 'identity' projection. | |
| float | GetSquaredViewDepth (DIOGRECamera *cam) |
| Returns the camera-relative squared depth of this renderable. | |
| bool | GetNormaliseNormals (void) |
| Returns whether or not this Renderable wishes the hardware to normalise normals. | |
| bool | GetCastsShadows (void) |
| Gets a list of lights, ordered relative to how close they are to this renderable. | |
| void | SetCustomParameter (unsigned long index, in_Vector4f *value) |
| Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters. | |
| void | GetCustomParameter (unsigned long index, out_Vector4f *value) |
| Gets the custom value associated with this Renderable at the given index. | |
| void | SetPolygonModeOverrideable (bool override) |
| Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
| bool | GetPolygonModeOverrideable (void) |
| Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
| DIOGREMaterial* DigitalSpaces::DIOGRERenderable::GetMaterial | ( | void | ) |
Retrieves a weak reference to the material this renderable object uses.
| DIOGRETechnique* DigitalSpaces::DIOGRERenderable::GetTechnique | ( | void | ) |
Retrieves a pointer to the Material Technique this renderable object uses.
| void DigitalSpaces::DIOGRERenderable::GetWorldTransforms | ( | out_Matrix4f * | xform | ) |
Gets the render operation required to send this object to the frame buffer.
Gets the world transform matrix / matrices for this renderable object.
| void DigitalSpaces::DIOGRERenderable::GetWorldOrientation | ( | out_Quaternionf * | orient | ) |
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.
| void DigitalSpaces::DIOGRERenderable::GetWorldPosition | ( | out_Vector3f * | pos | ) |
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.
| unsigned short DigitalSpaces::DIOGRERenderable::GetNumWorldTransforms | ( | void | ) |
Returns the number of world transform matrices this renderable requires.
| bool DigitalSpaces::DIOGRERenderable::getUseIdentityProjection | ( | void | ) |
Returns whether or not to use an 'identity' projection.
| bool DigitalSpaces::DIOGRERenderable::getUseIdentityView | ( | void | ) |
Returns whether or not to use an 'identity' projection.
| float DigitalSpaces::DIOGRERenderable::GetSquaredViewDepth | ( | DIOGRECamera * | cam | ) |
Returns the camera-relative squared depth of this renderable.
| bool DigitalSpaces::DIOGRERenderable::GetNormaliseNormals | ( | void | ) |
Returns whether or not this Renderable wishes the hardware to normalise normals.
| bool DigitalSpaces::DIOGRERenderable::GetCastsShadows | ( | void | ) |
Gets a list of lights, ordered relative to how close they are to this renderable.
Subclasses should override this if they could have been used to generate a shadow.
| void DigitalSpaces::DIOGRERenderable::SetCustomParameter | ( | unsigned long | index, | |
| in_Vector4f * | value | |||
| ) |
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. |
| void DigitalSpaces::DIOGRERenderable::GetCustomParameter | ( | unsigned long | index, | |
| out_Vector4f * | value | |||
| ) |
Gets the custom value associated with this Renderable at the given index.
| @see | setCustomParaemter for full details. |
| void DigitalSpaces::DIOGRERenderable::SetPolygonModeOverrideable | ( | bool | override | ) |
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. |
| bool DigitalSpaces::DIOGRERenderable::GetPolygonModeOverrideable | ( | void | ) |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
1.5.6