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

Grim::Light Struct Reference

Set lighting data. More...

#include <set.h>

Collaboration diagram for Grim::Light:

List of all members.

Public Types

enum  LightType { Omni = 1, Spot = 2, Direct = 3, Ambient = 4 }

Public Member Functions

 Light ()
void load (TextSplitter &ts)
void loadBinary (Common::SeekableReadStream *data)
void saveState (SaveGame *savedState) const
bool restoreState (SaveGame *savedState)
void setIntensity (float intensity)
void setUmbra (float angle)
void setPenumbra (float angle)

Public Attributes

Common::String _name
LightType _type
Math::Vector3d _pos
Math::Vector3d _dir
Color _color
float _intensity
float _umbraangle
float _penumbraangle
float _falloffNear
float _falloffFar
float _scaledintensity
float _cosumbraangle
float _cospenumbraangle
bool _enabled
int _id

Detailed Description

Set lighting data.

Definition at line 181 of file set.h.


Member Enumeration Documentation

Enumerator:
Omni 
Spot 
Direct 
Ambient 

Definition at line 191 of file set.h.


Constructor & Destructor Documentation

Grim::Light::Light (  ) 

Definition at line 488 of file set.cpp.


Member Function Documentation

void Grim::Light::load ( TextSplitter ts  ) 

Definition at line 561 of file set.cpp.

void Grim::Light::loadBinary ( Common::SeekableReadStream data  ) 

Definition at line 604 of file set.cpp.

bool Grim::Light::restoreState ( SaveGame savedState  ) 

Definition at line 662 of file set.cpp.

void Grim::Light::saveState ( SaveGame savedState  )  const

Definition at line 641 of file set.cpp.

void Grim::Light::setIntensity ( float  intensity  ) 

Definition at line 552 of file set.cpp.

void Grim::Light::setPenumbra ( float  angle  ) 

Definition at line 547 of file set.cpp.

void Grim::Light::setUmbra ( float  angle  ) 

Definition at line 542 of file set.cpp.


Member Data Documentation

Definition at line 201 of file set.h.

Definition at line 203 of file set.h.

Definition at line 203 of file set.h.

Definition at line 200 of file set.h.

Definition at line 204 of file set.h.

Definition at line 202 of file set.h.

Definition at line 202 of file set.h.

Definition at line 206 of file set.h.

Definition at line 202 of file set.h.

Definition at line 198 of file set.h.

Definition at line 202 of file set.h.

Definition at line 200 of file set.h.

Definition at line 203 of file set.h.

Definition at line 199 of file set.h.

Definition at line 202 of file set.h.


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


Generated on Sat May 25 2019 05:05:54 for ResidualVM by doxygen 1.7.1
curved edge   curved edge