ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A light source. More...

#include <light.h>

Inheritance diagram for Stark::Resources::Light:
Collaboration diagram for Stark::Resources::Light:

List of all members.

Public Member Functions

 Light (Object *parent, byte subType, uint16 index, const Common::String &name)
 ~Light () override
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void onPostRead () override
 Called when the node's initialization is complete.
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
Gfx::LightEntrygetLightEntry ()
 Get the rendering object used to represent this light.
void setColor (int32 red, int32 green, int32 blue)
 Change this light's diffuse color.
void setPosition (const Math::Vector3d &position)
 Change this light's position, in world coordinates.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kLight

Protected Member Functions

void printData () override

Protected Attributes

Math::Vector3d _color
Math::Vector3d _position
Math::Vector3d _direction
float _innerConeAngle
float _outerConeAngle
float _falloffNear
float _falloffFar
float _multiplier
Gfx::LightEntry_lightEntry

Detailed Description

A light source.

Definition at line 47 of file light.h.


Constructor & Destructor Documentation

Stark::Resources::Light::Light ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 36 of file engines/stark/resources/light.cpp.

Stark::Resources::Light::~Light (  )  [override]

Definition at line 32 of file engines/stark/resources/light.cpp.


Member Function Documentation

Gfx::LightEntry * Stark::Resources::Light::getLightEntry (  ) 

Get the rendering object used to represent this light.

Definition at line 92 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::onPostRead (  )  [override, virtual]

Called when the node's initialization is complete.

Allows to load additional data from file.

Reimplemented from Stark::Resources::Object.

Definition at line 60 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Definition at line 99 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 47 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::saveLoad ( ResourceSerializer serializer  )  [override, virtual]

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 75 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::setColor ( int32  red,
int32  green,
int32  blue 
)

Change this light's diffuse color.

Definition at line 82 of file engines/stark/resources/light.cpp.

void Stark::Resources::Light::setPosition ( const Math::Vector3d position  ) 

Change this light's position, in world coordinates.

Definition at line 88 of file engines/stark/resources/light.cpp.


Member Data Documentation

Definition at line 71 of file light.h.

Definition at line 73 of file light.h.

Definition at line 77 of file light.h.

Definition at line 76 of file light.h.

Definition at line 74 of file light.h.

Definition at line 80 of file light.h.

Definition at line 78 of file light.h.

Definition at line 75 of file light.h.

Definition at line 72 of file light.h.

const Type::ResourceType Stark::Resources::Light::TYPE = Type::kLight [static]

Definition at line 49 of file light.h.


The documentation for this class was generated from the following files:


Generated on Sat Mar 16 2019 05:07:06 for ResidualVM by doxygen 1.7.1
curved edge   curved edge