![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A slide segue effect. More...
#include <gf/SegueEffects.h>

Public Types | |
| enum | Orientation { Horizontal = 0 , Vertical = 1 } |
| The orientation of the stripes. More... | |
Public Types inherited from gf::Shader | |
| enum | Type { Vertex , Fragment } |
| Type of shaders. More... | |
Public Member Functions | |
| SlideSegueEffect () | |
| Default constructor. More... | |
| void | setStripes (int stripes) |
| Set the number of stripes. More... | |
| void | setStripeOrientation (Orientation orientation) |
| Set the stripe orientation. More... | |
Public Member Functions inherited from gf::SegueEffect | |
| void | setProgress (float progress) |
| Set the progress in the effect. 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 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 | |
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::SegueEffect | |
| SegueEffect (const char *vertexShader, const char *fragmentShader) | |
| Load both the vertex and fragment shaders from source codes in memory. More... | |
A slide segue effect.
By default, there is one vertical stripe.
| gf::SlideSegueEffect::SlideSegueEffect | ( | ) |
Default constructor.
| void gf::SlideSegueEffect::setStripeOrientation | ( | Orientation | orientation | ) |
Set the stripe orientation.
| orientation | The new orientation of the stripes |
| void gf::SlideSegueEffect::setStripes | ( | int | stripes | ) |
Set the number of stripes.
| stripes | The new number of stripes |