Go to the documentation of this file.
79 void _calcTempSquareDist(
const Vector3& worldPos);
106 void setType(LightTypes type);
110 LightTypes getType(
void)
const;
147 void setSpecularColour(
Real red,
Real green,
Real blue);
183 void setAttenuation(
Real range,
Real constant,
Real linear,
Real quadratic);
187 Real getAttenuationRange(
void)
const;
191 Real getAttenuationConstant(
void)
const;
195 Real getAttenuationLinear(
void)
const;
199 Real getAttenuationQuadric(
void)
const;
215 void setPosition(
const Vector3& vec);
221 const Vector3& getPosition(
void)
const;
237 void setDirection(
const Vector3& vec);
243 const Vector3& getDirection(
void)
const;
257 void setSpotlightRange(
const Radian& innerAngle,
const Radian& outerAngle,
Real falloff = 1.0);
261 const Radian& getSpotlightInnerAngle(
void)
const;
265 const Radian& getSpotlightOuterAngle(
void)
const;
269 Real getSpotlightFalloff(
void)
const;
273 void setSpotlightInnerAngle(
const Radian& val);
277 void setSpotlightOuterAngle(
const Radian& val);
281 void setSpotlightFalloff(
Real val);
304 void setPowerScale(
Real power);
309 Real getPowerScale(
void)
const;
312 void _notifyAttached(
Node* parent,
bool isTagPoint =
false);
315 void _notifyMoved(
void);
324 const String& getMovableType(
void)
const;
329 const Vector3& getDerivedPosition(
bool cameraRelativeIfSet =
false)
const;
332 const Vector3& getDerivedDirection(
void)
const;
339 void setVisible(
bool visible);
354 Vector4 getAs4DVector(
bool cameraRelativeIfSet =
false)
const;
378 uint32 getTypeFlags(
void)
const;
394 void resetCustomShadowCameraSetup(
void);
401 bool debugRenderables =
false);
429 void setShadowFarDistance(
Real distance);
432 void resetShadowFarDistance(
void);
436 Real getShadowFarDistance(
void)
const;
437 Real getShadowFarDistanceSquared(
void)
const;
457 Real _deriveShadowNearClipDistance(
const Camera* maincam)
const;
481 Real _deriveShadowFarClipDistance(
const Camera* maincam)
const;
484 void _setCameraRelative(
Camera* cam);
536 virtual void _updateCustomGpuParameter(
uint16 paramIndex,
556 virtual void update(
void)
const;
559 const String& getAnimableDictionaryName(
void)
const;
561 void initialiseAnimableDictionary(
StringVector& vec)
const;
622 const String& getType(
void)
const;
static String msMovableType
Shared class-level name for Movable type.
LightTypes
Defines the type of light.
A viewpoint from which the scene will be rendered.
void setShadowNearClipDistance(Real nearClip)
Set the near clip plane distance to be used by the shadow camera, if this light casts texture shadows...
PlaneBoundedVolume mNearClipVolume
vector< String >::type StringVector
Real getShadowNearClipDistance() const
Get the near clip plane distance to be used by the shadow camera, if this light casts texture shadows...
Structure recording the use of an automatic parameter.
Representation of a dynamic light source in the scene.
Real getShadowFarClipDistance() const
Get the far clip plane distance to be used by the shadow camera, if this light casts texture shadows.
Abstract class defining a movable object in a scene.
Interface definition for a factory class which produces a certain kind of MovableObject,...
CustomParameterMap mCustomParameters
Stores the custom parameters for the light.
Vector3 mDerivedCamRelativePosition
Real getBoundingRadius(void) const
Retrieves the radius of the origin-centered bounding sphere for this object.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Vector3 mDerivedDirection
Factory object for creating Light instances.
Real mShadowFarDistSquared
Real getSpotlightNearClipDistance() const
Get the near clip plane distance to be used by spotlights that use light clipping.
ShadowCameraSetupPtr mCustomShadowCameraSetup
Pointer to a custom shadow camera setup.
void setShadowFarClipDistance(Real farClip)
Set the far clip plane distance to be used by the shadow camera, if this light casts texture shadows.
Wrapper class which indicates a given angle value is in Radians.
bool mDerivedTransformDirty
Is the derived transform dirty?
A 3D box aligned with the x/y/z axes.
Collects together the program parameters used for a GpuProgram.
A sphere primitive, mostly used for bounds checking.
Represents a convex volume bounded by planes.
Class representing colour.
map< uint16, Vector4 >::type CustomParameterMap
4-dimensional homogeneous vector.
Visitor object that can be used to iterate over a collection of Renderable instances abstractly.
void _notifyIndexInFrame(size_t i)
bool mDerivedCamRelativeDirty
PlaneBoundedVolumeList mFrustumClipVolumes
Real tempSquareDist
Temp tag used for sorting.
float Real
Software floating point type.
vector< PlaneBoundedVolume >::type PlaneBoundedVolumeList
Class representing a general-purpose node an articulated scene graph.
Standard 3-dimensional vector.
Class to manage the scene object rendering queue.
size_t _getIndexInFrame() const
Gets the index at which this light is in the current render.
static String FACTORY_TYPE_NAME
Camera * mCameraToBeRelativeTo
void setSpotlightNearClipDistance(Real nearClip)
Set the near clip plane distance to be used by spotlights that use light clipping,...
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.