Gamedev Framework (gf)  0.17.0
A C++14 framework for 2D games
Public Types | Public Member Functions | List of all members
gf::SlideSegueEffect Class Reference

A slide segue effect. More...

#include <gf/SegueEffects.h>

Inheritance diagram for gf::SlideSegueEffect:
Inheritance graph
[legend]

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...
 
Shaderoperator= (const Shader &)=delete
 Deleted copy assignment. More...
 
void setUniform (StringRef name, float val)
 Specify value for a float uniform. More...
 
void setUniform (StringRef name, int val)
 Specify value for a int uniform. More...
 
void setUniform (StringRef name, const Vector2f &vec)
 Specify value for a vec2 uniform. More...
 
void setUniform (StringRef name, const Vector3f &vec)
 Specify value for a vec3 uniform. More...
 
void setUniform (StringRef name, const Vector4f &vec)
 Specify value for a vec4 uniform. More...
 
void setUniform (StringRef name, const Vector2i &vec)
 Specify value for a ivec2 uniform. More...
 
void setUniform (StringRef name, const Vector3i &vec)
 Specify value for a ivec3 uniform. More...
 
void setUniform (StringRef name, const Vector4i &vec)
 Specify value for a ivec4 uniform. More...
 
void setUniform (StringRef name, const Matrix3f &mat)
 Specify value for a mat3 uniform. More...
 
void setUniform (StringRef name, const Matrix4f &mat)
 Specify value for a mat4 uniform. More...
 
void setUniform (StringRef 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...
 

Detailed Description

A slide segue effect.

By default, there is one vertical stripe.

Member Enumeration Documentation

◆ Orientation

The orientation of the stripes.

Enumerator
Horizontal 

The stripes are horizontal.

Vertical 

The stripes are vertical.

Constructor & Destructor Documentation

◆ SlideSegueEffect()

gf::SlideSegueEffect::SlideSegueEffect ( )

Default constructor.

Member Function Documentation

◆ setStripeOrientation()

void gf::SlideSegueEffect::setStripeOrientation ( Orientation  orientation)

Set the stripe orientation.

Parameters
orientationThe new orientation of the stripes

◆ setStripes()

void gf::SlideSegueEffect::setStripes ( int  stripes)

Set the number of stripes.

Parameters
stripesThe new number of stripes