|
| virtual std::string | GetTypeName () const override |
| |
| virtual void | SetID (uint32_t newID) override |
| |
| virtual void | SetName (std::string newName) override |
| |
|
| WLight (class Wasabi *const app, W_LIGHT_TYPE type=W_LIGHT_DIRECTIONAL, uint32_t ID=0) |
| |
| void | SetColor (WColor col) |
| |
| void | SetRange (float fRange) |
| |
| void | SetIntensity (float fIntensity) |
| |
| void | SetEmittingAngle (float fAngle) |
| |
| W_LIGHT_TYPE | GetType () const |
| |
| WColor | GetColor () const |
| |
| float | GetRange () const |
| |
| float | GetIntensity () const |
| |
| float | GetMinCosAngle () const |
| |
| void | Show () |
| |
| void | Hide () |
| |
| bool | Hidden () const |
| |
| bool | InCameraView (class WCamera *cam) const |
| |
| WMatrix | GetWorldMatrix () |
| |
| bool | UpdateLocals () |
| |
| virtual bool | Valid () const override |
| |
| virtual void | OnStateChange (STATE_CHANGE_TYPE type) override |
| |
|
virtual WError | SaveToStream (WFile *file, std::ostream &outputStream) override |
| |
|
virtual WError | LoadFromStream (WFile *file, std::istream &inputStream, std::vector< void * > &args, std::string nameSuffix) override |
| |
| void | SetPosition (float x, float y, float z) |
| |
| void | SetPosition (const WVector3 pos) |
| |
| void | Point (float x, float y, float z) |
| |
| void | Point (WVector3 target) |
| |
| void | SetAngle (WQuaternion quat) |
| |
| void | SetToRotation (const WOrientation *const device) |
| |
| void | SetULRVectors (WVector3 up, WVector3 look, WVector3 right) |
| |
| void | SetToTransformation (WMatrix mtx) |
| |
| void | Yaw (float angle) |
| |
| void | Roll (float angle) |
| |
| void | Pitch (float angle) |
| |
| void | Move (float units) |
| |
| void | Strafe (float units) |
| |
| void | Fly (float units) |
| |
| float | GetPositionX () const |
| |
| float | GetPositionY () const |
| |
| float | GetPositionZ () const |
| |
| WVector3 | GetPosition () const |
| |
| float | GetAngleX () const |
| |
| float | GetAngleY () const |
| |
| float | GetAngleZ () const |
| |
| WQuaternion | GetRotation () const |
| |
| WVector3 | GetUVector () const |
| |
| WVector3 | GetLVector () const |
| |
| WVector3 | GetRVector () const |
| |
| virtual void | SetBindingMatrix (WMatrix mtx) |
| |
| void | RemoveBinding () |
| |
| WMatrix | GetBindingMatrix () const |
| |
| bool | IsBound () const |
| |
| WMatrix | ComputeTransformation () const |
| |
| WMatrix | ComputeInverseTransformation () const |
| |
|
| WFileAsset (class Wasabi *const app, uint32_t ID=0) |
| |
|
virtual WError | LoadFromStream (class WFile *file, std::istream &inputStream, vector< void * > &args, std::string nameSuffix)=0 |
| |
|
| WBase (class Wasabi *const app, uint32_t ID=0) |
| |
| uint32_t | GetID () const |
| |
| std::string | GetName () const |
| |
| class Wasabi * | GetAppPtr () const |
| |
| void | AddReference () |
| |
| void | RemoveReference () |
| |
This represents a light to be rendered by the used renderer. Lights have 3 types:
- Directional: This is light that has infinite range, and always strikes in the same direction (the L vector of the WLight's WOrientation base class). This is suitable to mimic sunlight.
- Point: This is light that is illuminated from a point (the position of the WLight's WOrientation base class) whose range is specified by SetRange(). This is suitable for light bulbs or flame torches etc...
- Spot: This is light that is illuminated from a point (the position of the WLight's WOrientation base class) pointing at a direction (the L vector of the WLight's WOrientation base class) in a cone shape whose height ( or length) is specified by SetRange() and whose emission angle is specified by SetEmittingAngle(). This is suitable for car headlights, torch spotlight, etc...