|
Couch
|
#include <Light.h>


Public Member Functions | |
| PointLight (float radius, Vector3 color, float ambient, float diffuse, float specular) | |
| float | GetRadius () |
| void | SetRadius (float radius) |
| virtual Name | GetType () const |
| virtual PointLight * | Create () |
| virtual PointLight * | Duplicate () |
| virtual PointLight * | Instance () |
Public Member Functions inherited from Light | |
| Vector3 | GetColor () |
| void | SetColor (Vector3 color) |
| float | GetAmbient () |
| void | SetAmbient (float ambient) |
| float | GetDiffuse () |
| void | SetDiffuse (float diffuse) |
| float | GetSpecular () |
| void | SetSpecular (float specular) |
Public Member Functions inherited from Spatial | |
| Transform | GetTransform () |
| void | SetTransform (Transform transform) |
| Transform | GetGlobalTransform () |
| void | SetGlobalTransform (Transform globalTransform) |
| virtual void | Translate (Vector3 offset) |
| void | RotateX (float phi) |
| void | RotateY (float phi) |
| void | RotateZ (float phi) |
| void | UniformScale (float scale) |
Public Member Functions inherited from Node | |
| Node (bool isPrefab) | |
| bool | IsPrefab () |
| NodeList | GetChildren () |
| void | AddChild (Node *child) |
| Node * | GetParent () |
| void | QueueFree () |
| void | DoFree () |
Additional Inherited Members | |
Static Public Member Functions inherited from Node | |
| static Node * | GetRoot () |
Protected Attributes inherited from Light | |
| Vector3 | color |
| float | ambient |
| float | diffuse |
| float | specular |
Point lights are omnidirectional lights that have a limited range.
|
virtual |
Allocates a new "default" version of this node.
Reimplemented from Light.
|
virtual |
| float PointLight::GetRadius | ( | ) |
The radius of which the light will shine.
|
virtual |
Creates an instanced version of this node, by calling Duplicate. Subclasses should override this to perform neccesary tasks for instantiation, i.e. adding a physic object to the physics world. Any children of this node will also be instanced.
Reimplemented from Light.
| void PointLight::SetRadius | ( | float | radius | ) |
Sets the light radius.
| radius | The desired radius |