![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A fade segue effect. More...
#include <gf/SegueEffects.h>
Public Member Functions | |
FadeSegueEffect () | |
Default constructor. More... | |
![]() | |
void | setProgress (float progress) |
Set the progress in the effect. More... | |
![]() | |
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 float uniform. More... | |
void | setUniform (const std::string &name, int val) |
Specify value for a int uniform. More... | |
void | setUniform (const std::string &name, const Vector2f &vec) |
Specify value for a vec2 uniform. More... | |
void | setUniform (const std::string &name, const Vector3f &vec) |
Specify value for a vec3 uniform. More... | |
void | setUniform (const std::string &name, const Vector4f &vec) |
Specify value for a vec4 uniform. More... | |
void | setUniform (const std::string &name, const Vector2i &vec) |
Specify value for a ivec2 uniform. More... | |
void | setUniform (const std::string &name, const Vector3i &vec) |
Specify value for a ivec3 uniform. More... | |
void | setUniform (const std::string &name, const Vector4i &vec) |
Specify value for a ivec4 uniform. More... | |
void | setUniform (const std::string &name, const Matrix3f &mat) |
Specify value for a mat3 uniform. More... | |
void | setUniform (const std::string &name, const Matrix4f &mat) |
Specify value for a mat4 uniform. More... | |
void | setUniform (const std::string &name, const BareTexture &tex) |
Specify a texture for a sampler2D uniform. More... | |
Additional Inherited Members | |
![]() | |
enum | Type { Vertex , Fragment } |
Type of shaders. More... | |
![]() | |
static void | bind (const Shader *shader) |
Bind a shader for rendering. More... | |
![]() | |
SegueEffect (const char *vertexShader, const char *fragmentShader) | |
Load both the vertex and fragment shaders from source codes in memory. More... | |
A fade segue effect.
gf::FadeSegueEffect::FadeSegueEffect | ( | ) |
Default constructor.