ScummVM API documentation
Twp::Lighting Class Reference
Inheritance diagram for Twp::Lighting:
Twp::Shader

Public Member Functions

void setSpriteOffset (const Math::Vector2d &offset)
 
void setSpriteSheetFrame (const SpriteSheetFrame &frame, const Texture &getNumTextures, bool flipX)
 
void update (const Lights &lights)
 
- Public Member Functions inherited from Twp::Shader
void init (const char *name, const char *vertex, const char *fragment)
 
int getUniformLocation (const char *name) const
 
void setUniform (const char *name, int value)
 
void setUniform (const char *name, float value)
 
void setUniform (const char *name, float *value, size_t count)
 
void setUniform2 (const char *name, float *value, size_t count)
 
void setUniform3 (const char *name, float *value, size_t count)
 
void setUniform (const char *name, Math::Vector2d value)
 
void setUniform3 (const char *name, Color value)
 
void setUniform4 (const char *name, Color value)
 
virtual int getNumTextures ()
 
virtual int getTexture (int index)
 
virtual int getTextureLoc (int index)
 

Public Attributes

Math::Vector2d _contentSize
 
Math::Vector2d _spriteOffset
 
Math::Vector2d _spritePosInSheet
 
Math::Vector2d _spriteSizeRelToSheet
 
bool _debug = false
 
Color _ambientLight
 
int u_numberLights = 0
 
float u_lightPos [3 *50]
 
float u_coneDirection [2 *50]
 
float u_coneCosineHalfConeAngle [50]
 
float u_coneFalloff [50]
 
float u_lightColor [3 *50]
 
float u_brightness [50]
 
float u_cutoffRadius [50]
 
float u_halfRadius [50]
 

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