|  | Gamedev Framework (gf)
    0.19.0
    A C++17 framework for 2D games | 
Simulation of color blindness. More...
#include <gf/Effects.h>

| Public Types | |
| enum | Type { Normal, Protanopia, Protanomaly, Deuteranopia, Deuteranomaly, Tritanopia, Tritanomaly, Achromatopsia, Achromatomaly } | 
| Type of color blindness.  More... | |
|  Public Types inherited from gf::Shader | |
| enum | Type { Vertex, Fragment } | 
| Type of shaders.  More... | |
| Public Member Functions | |
| ColorBlindEffect (Type type=Normal) | |
| Constructor.  More... | |
| void | setType (Type type) | 
| Change the type of color blindness.  More... | |
|  Public Member Functions inherited from gf::ColorMatrixEffect | |
| ColorMatrixEffect () | |
| Default constructor.  More... | |
| void | setColorMatrix (const Matrix4f &mat) | 
| Set the color matrix.  More... | |
|  Public Member Functions inherited from gf::Shader | |
| Shader () | |
| Default constructor.  More... | |
| Shader (const Path &filename, Type type) | |
| Load the vertex of fragment shader from a file.  More... | |
| Shader (const Path &vertexShaderFilename, const Path &fragmentShaderFilename) | |
| Load both the vertex and fragment shaders from files.  More... | |
| Shader (const char *shader, Type type) | |
| Load the vertex or fragment shader from a source code in memory.  More... | |
| Shader (const char *vertexShader, const char *fragmentShader) | |
| Load both the vertex and fragment shaders from source codes in memory.  More... | |
| Shader (InputStream &stream, Type type) | |
| Load the vertex or fragment shader from a custom stream.  More... | |
| Shader (InputStream &vertexShaderStream, InputStream &fragmentShaderStream) | |
| Load both the vertex and fragment shaders from custom streams.  More... | |
| ~Shader () | |
| Destructor.  More... | |
| Shader (const Shader &)=delete | |
| Deleted copy constructor.  More... | |
| Shader & | operator= (const Shader &)=delete | 
| Deleted copy assignment.  More... | |
| void | setUniform (const std::string &name, float val) | 
| Specify value for a floatuniform.  More... | |
| void | setUniform (const std::string &name, int val) | 
| Specify value for a intuniform.  More... | |
| void | setUniform (const std::string &name, const Vector2f &vec) | 
| Specify value for a vec2uniform.  More... | |
| void | setUniform (const std::string &name, const Vector3f &vec) | 
| Specify value for a vec3uniform.  More... | |
| void | setUniform (const std::string &name, const Vector4f &vec) | 
| Specify value for a vec4uniform.  More... | |
| void | setUniform (const std::string &name, const Vector2i &vec) | 
| Specify value for a ivec2uniform.  More... | |
| void | setUniform (const std::string &name, const Vector3i &vec) | 
| Specify value for a ivec3uniform.  More... | |
| void | setUniform (const std::string &name, const Vector4i &vec) | 
| Specify value for a ivec4uniform.  More... | |
| void | setUniform (const std::string &name, const Matrix3f &mat) | 
| Specify value for a mat3uniform.  More... | |
| void | setUniform (const std::string &name, const Matrix4f &mat) | 
| Specify value for a mat4uniform.  More... | |
| void | setUniform (const std::string &name, const BareTexture &tex) | 
| Specify a texture for a sampler2Duniform.  More... | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from gf::Shader | |
| static void | bind (const Shader *shader) | 
| Bind a shader for rendering.  More... | |
|  Protected Member Functions inherited from gf::Effect | |
| Effect (const char *vertexShader, const char *fragmentShader) | |
| Load both the vertex and fragment shaders from source codes in memory.  More... | |
Simulation of color blindness.
Color blindness is a deficiency of the vision that affects a significant percentage of the population.
This effect simulate different types of color blindness.
Type of color blindness.
Constructor.
| type | The type of color blindness | 
| void gf::ColorBlindEffect::setType | ( | Type | type | ) | 
Change the type of color blindness.
| type | The type of color blindness | 
 1.8.13
 1.8.13