|
Couch
|
#include <Light.h>


Public Member Functions | |
| DirectionalLight (Vector3 direction, Vector3 color, float ambient, float diffuse, float specular) | |
| Vector3 | GetDirection () |
| void | SetDirection (Vector3 direction) |
| virtual Name | GetType () const |
| virtual DirectionalLight * | Create () |
| virtual DirectionalLight * | Duplicate () |
| virtual DirectionalLight * | 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 |
Directional lights are infinitely far away lights that illuminate the whole world.
|
virtual |
Allocates a new "default" version of this node.
Reimplemented from Light.
|
virtual |
| Vector3 DirectionalLight::GetDirection | ( | ) |
The direction from which this light is coming.
|
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 DirectionalLight::SetDirection | ( | Vector3 | direction | ) |
Set the direction from which the light is coming.
| direction | The desired light direction |