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

Public Member Functions

int getNumTextures () override
 
int getTexture (int index) override
 
int getTextureLoc (int index) override
 
- 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)
 

Public Attributes

FadeEffect _effect = FadeEffect::None
 
Common::SharedPtr< Room_room
 
Texture_texture1 = nullptr
 
Texture_texture2 = nullptr
 
Math::Vector2d _cameraPos
 
float _duration = 0.f
 
float _elapsed = 0.f
 
float _movement = 0.f
 
float _fade = 0.f
 
bool _fadeToSepia = false
 

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