|
| Light (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager) |
| Normal constructor. More...
|
|
| ~Light () override |
| Standard destructor. More...
|
|
void | _calcTempSquareDist (const Vector3 &worldPos) |
| Internal method for calculating current squared distance from some world position. More...
|
|
Real | _deriveShadowFarClipDistance (const Camera *maincam) const |
| Derive a shadow camera far distance from either the light, or from the main camera if the light doesn't have its own setting. More...
|
|
Real | _deriveShadowNearClipDistance (const Camera *maincam) const |
| Derive a shadow camera near distance from either the light, or from the main camera if the light doesn't have its own setting. More...
|
|
bool | _getOwnShadowFarDistance () const |
|
void | _setLightProfileIdx (uint16 profileIdx) |
|
virtual void | _updateCustomGpuParameter (uint16 paramIndex, const GpuProgramParameters_AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
| Update a custom GpuProgramParameters constant which is derived from information only this Light knows. More...
|
|
void | _updateRenderQueue (RenderQueue *queue, Camera *camera, const Camera *lodCamera) override |
| Internal method by which the movable object must add Renderable subclass instances to the rendering queue. More...
|
|
AnimableValuePtr | createAnimableValue (const String &valueName) override |
| Create a reference-counted AnimableValuePtr for the named value. More...
|
|
bool | getAffectParentNode () const |
|
Vector4 | getAs4DVector () const |
|
Real | getAttenuationConstant () const |
| Returns the constant factor in the attenuation formula. More...
|
|
Real | getAttenuationLinear () const |
| Returns the linear factor in the attenuation formula. More...
|
|
Real | getAttenuationQuadric () const |
| Returns the quadric factor in the attenuation formula. More...
|
|
Real | getAttenuationRange () const |
| Returns the absolute upper range of the light. More...
|
|
const Vector4 & | getCustomParameter (uint16 index) const |
| Gets the custom value associated with this Light at the given index. More...
|
|
const Vector4 * | getCustomParameterNoThrow (uint16 index) const |
|
Vector3 | getDerivedDirection () const |
| Retrieves the direction of the light including any transform from nodes it is attached to. More...
|
|
Vector3 | getDerivedDirectionUpdated () const |
|
Vector2 | getDerivedRectSize () const |
|
const ColourValue & | getDiffuseColour () const |
| Returns the colour of the diffuse light given off by this light source (see setDiffuseColour for more info). More...
|
|
Vector3 | getDirection () const |
| Returns the light's direction. More...
|
|
bool | getDoubleSided () const |
|
uint16 | getLightProfileIdx () const |
|
const String & | getMovableType () const override |
| Returns the type name of this object. More...
|
|
Real | getPowerScale () const |
| Set the scaling factor which indicates the relative power of a light. More...
|
|
const Vector2 & | getRectSize () const |
|
Real | getShadowFarClipDistance () const |
| Get the far clip plane distance to be used by the shadow camera, if this light casts texture shadows. More...
|
|
Real | getShadowFarDistance () const |
| Gets the maximum distance away from the camera that shadows by this light will be visible. More...
|
|
Real | getShadowFarDistanceSquared () const |
|
Real | getShadowNearClipDistance () const |
| Get the near clip plane distance to be used by the shadow camera, if this light casts texture shadows. More...
|
|
const ColourValue & | getSpecularColour () const |
| Returns the colour of specular light given off by this light source. More...
|
|
Real | getSpotlightFalloff () const |
| Returns the falloff between the inner and outer cones of the spotlight. More...
|
|
const Radian & | getSpotlightInnerAngle () const |
| Returns the angle covered by the spotlights inner cone. More...
|
|
Real | getSpotlightNearClipDistance () const |
| Get the near clip plane distance to be used by spotlights that use light clipping. More...
|
|
const Radian & | getSpotlightOuterAngle () const |
| Returns the angle covered by the spotlights outer cone. More...
|
|
Real | getSpotlightTanHalfAngle () const |
|
TextureGpu * | getTexture () const |
|
LightTypes | getType () const |
| Returns the light type. More...
|
|
bool | isInLightRange (const Ogre::AxisAlignedBox &container) const |
| Check whether a bounding box is included in the lighted area of the light. More...
|
|
bool | isInLightRange (const Ogre::Sphere &sphere) const |
| Check whether a sphere is included in the lighted area of the light. More...
|
|
void | notifyTextureChanged (TextureGpu *texture, TextureGpuListener::Reason reason, void *extraData) override |
| Called when a TextureGpu changed in a way that affects how it is displayed: More...
|
|
void | resetShadowFarDistance () |
| Tells the light to use the shadow far distance of the SceneManager. More...
|
|
void | setAffectParentNode (bool bAffect) |
| A Light must always have a Node attached to it. More...
|
|
void | setAttenuation (Real range, Real constant, Real linear, Real quadratic) |
| Sets the attenuation parameters of the light source i.e. More...
|
|
void | setAttenuationBasedOnRadius (Real radius, Real lumThreshold) |
| Sets the attenuation parameters (range, constant, linear & quadratic,. More...
|
|
void | setCustomParameter (uint16 index, const Vector4 &value) |
| Sets a custom parameter for this Light, which may be used to drive calculations for this specific Renderable, like GPU program parameters. More...
|
|
void | setDiffuseColour (const ColourValue &colour) |
| Sets the colour of the diffuse light given off by this source. More...
|
|
void | setDiffuseColour (Real red, Real green, Real blue) |
| Sets the colour of the diffuse light given off by this source. More...
|
|
void | setDirection (const Vector3 &vec) |
| Sets the direction in which a light points. More...
|
|
void | setDoubleSided (bool bDoubleSided) |
| For area lights and custom 2d shapes, specifies whether the light lits in both directions (positive & negative sides of the plane) or if only towards one. More...
|
|
void | setPowerScale (Real power) |
| Set a scaling factor to indicate the relative power of a light. More...
|
|
void | setRectSize (Vector2 rectSize) |
| For custom 2D shape and area lights, sets the dimensions of the rectangle. More...
|
|
void | setRenderQueueGroup (uint8 queueID) override |
| Overload to avoid it. Light::setType uses the RenderQueue ID to classify lights per type. More...
|
|
void | setShadowFarClipDistance (Real farClip) |
| Set the far clip plane distance to be used by the shadow camera, if this light casts texture shadows. More...
|
|
void | setShadowFarDistance (Real distance) |
| Sets the maximum distance away from the camera that shadows by this light will be visible. More...
|
|
void | setShadowNearClipDistance (Real nearClip) |
| Set the near clip plane distance to be used by the shadow camera, if this light casts texture shadows. More...
|
|
void | setSpecularColour (const ColourValue &colour) |
| Sets the colour of the specular light given off by this source. More...
|
|
void | setSpecularColour (Real red, Real green, Real blue) |
| Sets the colour of the specular light given off by this source. More...
|
|
void | setSpotlightFalloff (Real val) |
| Sets the falloff between the inner and outer cones of the spotlight. More...
|
|
void | setSpotlightInnerAngle (const Radian &val) |
| Sets the angle covered by the spotlights inner cone. More...
|
|
void | setSpotlightNearClipDistance (Real nearClip) |
| Set the near clip plane distance to be used by spotlights that use light clipping, allowing you to render spots as if they start from further down their frustum. More...
|
|
void | setSpotlightOuterAngle (const Radian &val) |
| Sets the angle covered by the spotlights outer cone. More...
|
|
void | setSpotlightRange (const Radian &innerAngle, const Radian &outerAngle, Real falloff=1.0) |
| Sets the range of a spotlight, i.e. More...
|
|
void | setTexture (TextureGpu *texture) |
| Sets a textured for types of light that support it. More...
|
|
void | setTextureRaw (TextureGpu *texture, uint32 sliceIdx) |
|
void | setType (LightTypes type) |
| Sets the type of light - see LightTypes for more info. More...
|
|
| MovableObject (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager, uint8 renderQueueId) |
| Constructor. More...
|
|
| MovableObject (ObjectData *objectDataPtrs) |
| Don't use this constructor unless you know what you're doing. More...
|
|
virtual | ~MovableObject () |
| Virtual destructor - read Scott Meyers if you don't know why this is needed. More...
|
|
LightList * | _getLightList () |
| Returns a pointer to the current list of lights for this object. More...
|
|
SceneManager * | _getManager () const |
| Get the manager of this object, if any (internal use only) More...
|
|
ObjectData & | _getObjectData () |
| Returns a direct access to the ObjectData state. More...
|
|
const Matrix4 & | _getParentNodeFullTransform () const |
| Returns the full transformation of the parent sceneNode or the attachingPoint node. More...
|
|
virtual void | _notifyAttached (Node *parent) |
| Internal method called to notify the object that it has been attached to a node. More...
|
|
void | _notifyManager (SceneManager *man) |
| Notify the object of it's manager (internal use only) More...
|
|
virtual void | _notifyParentNodeMemoryChanged () |
|
virtual void | _notifyStaticDirty () const |
| Called by SceneManager when it is telling we're a static MovableObject being dirty Don't call this directly. More...
|
|
virtual void | _releaseManualHardwareResources () |
| Notifies the movable object that hardware resources were lost. More...
|
|
virtual void | _restoreManualHardwareResources () |
| Notifies the movable object that hardware resources should be restored. 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 | detachFromParent () |
| Detaches an object from a parent SceneNode if attached. More...
|
|
RealAsUint | getCachedDistanceToCamera () const |
| Returns the distance to camera as calculated in cullFrustum() More...
|
|
Real | getCachedDistanceToCameraAsReal () const |
| Returns the distance to camera as calculated in cullFrustum() More...
|
|
bool | getCastShadows () const |
| Returns whether shadow casting is enabled for this object. More...
|
|
unsigned char | getCurrentMeshLod () const |
|
uint32 | getLightMask () const |
| Get a bitwise mask which will filter the lights affecting this object. More...
|
|
Listener * | getListener () const |
| Gets the current listener for this object. More...
|
|
Aabb | getLocalAabb () const |
| Retrieves the local axis-aligned bounding box for this object. More...
|
|
float | getLocalRadius () const |
| See getLocalAabb and getWorldRadius. More...
|
|
const String & | getName () const |
| Returns the name of this object. More...
|
|
Node * | getParentNode () const |
| Returns the node to which this object is attached. More...
|
|
SceneNode * | getParentSceneNode () const |
|
uint32 | getQueryFlags () const |
| Returns the query flags relevant for this object. More...
|
|
Real | getRenderingDistance () 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...
|
|
uint8 | getRenderQueueGroup () const |
| Gets the queue group for this entity, see setRenderQueueGroup for full details. More...
|
|
Real | getShadowRenderingDistance () const |
| Gets the distance at which batches are no longer casting shadows. More...
|
|
SkeletonInstance * | getSkeletonInstance () 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...
|
|
uint32 | getVisibilityFlags () const |
| Returns the visibility flags relevant for this object. More...
|
|
bool | getVisible () const |
| Gets this object whether to be visible or not, if it has a renderable component. More...
|
|
Aabb | getWorldAabb () const |
| Gets the axis aligned box in world space. More...
|
|
Aabb | getWorldAabbUpdated () |
| Gets the axis aligned box in world space. More...
|
|
float | getWorldRadius () const |
| Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ). More...
|
|
float | getWorldRadiusUpdated () |
| Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ). More...
|
|
virtual void | instanceBatchCullFrustumThreaded (const Frustum *frustum, const Camera *lodCamera, uint32 combinedVisibilityFlags) |
|
bool | isAttached () const |
| Returns true if this object is attached to a Node. More...
|
|
bool | isStatic () const |
| Checks whether this MovableObject is static. More...
|
|
bool | isVisible () const |
| Returns whether or not this object is supposed to be visible or not. More...
|
|
const LightList & | queryLights () const |
| Gets a list of lights, ordered relative to how close they are to this movable object. 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 | resetMeshLod () |
| Sets mCurrentMeshLod to 0. More...
|
|
void | setCastShadows (bool enabled) |
| Sets whether or not this object will cast shadows. 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 | setLocalAabb (const Aabb box) |
| Sets the local axis-aligned bounding box for this object. More...
|
|
void | setName (const String &name) |
| Sets a custom name for this node. 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...
|
|
void | setShadowRenderingDistance (Real dist) |
| Sets the distance at which the object is no longer casting shadows. More...
|
|
bool | setStatic (bool bStatic) |
| Turns this Node into static or dynamic. 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...
|
|
| AnimableObject () |
|
virtual | ~AnimableObject () |
|
const StringVector & | getAnimableValueNames () const |
| Gets a list of animable value names for this object. More...
|
|
| IdObject (IdType id) |
| We don't call generateNewId() here, to prevent objects in the stack (i.e. More...
|
|
IdType | getId () const |
| Get the unique id of this object. More...
|
|
bool | operator() (const IdObject &left, const IdObject &right) |
|
bool | operator() (const IdObject *left, const IdObject *right) |
|
virtual | ~TextureGpuListener () |
|
virtual bool | shouldStayLoaded (TextureGpu *texture) |
| Return true if this TextureGpu should likely stay loaded or else graphical changes could occur. More...
|
|