Gamedev Framework (gf)  0.3.0
A C++11 framework for 2D games
Public Member Functions | List of all members
gf::AntiAliasingEffect Class Reference

Anti-aliasing effect. More...

#include <gf/Effects.h>

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

Public Member Functions

 AntiAliasingEffect ()
 Default constructor. More...
 
void setFramebufferSize (Vector2f size)
 Set the framebuffer size. More...
 
- Public Member Functions inherited from gf::Shader
 Shader ()
 Default constructor. More...
 
 ~Shader ()
 Destructor. More...
 
 Shader (const Shader &)=delete
 Deleted copy constructor. More...
 
Shaderoperator= (const Shader &)=delete
 Deleted copy assignment. More...
 
bool loadFromFile (const Path &filename, Type type)
 Load the vertex of fragment shader from a file. More...
 
bool loadFromFile (const Path &vertexShaderFilename, const Path &fragmentShaderFilename)
 Load both the vertex and fragment shaders from files. More...
 
bool loadFromMemory (const std::string &shader, Type type)
 Load the vertex or fragment shader from a source code in memory. More...
 
bool loadFromMemory (const std::string &vertexShader, const std::string &fragmentShader)
 Load both the vertex and fragment shaders from source codes in memory. More...
 
bool loadFromStream (InputStream &stream, Type type)
 Load the vertex or fragment shader from a custom stream. More...
 
bool loadFromStream (InputStream &vertexShaderStream, InputStream &fragmentShaderStream)
 Load both the vertex and fragment shaders from custom streams. 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 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

- Public Types inherited from gf::Shader
enum  Type {
  Vertex,
  Fragment
}
 Type of shaders. More...
 
- Static Public Member Functions inherited from gf::Shader
static void bind (const Shader *shader)
 Bind a shader for rendering. More...
 

Detailed Description

Anti-aliasing effect.

This effect uses Fast Approximate Anti-Aliasing (FXAA).

Constructor & Destructor Documentation

gf::AntiAliasingEffect::AntiAliasingEffect ( )

Default constructor.

Member Function Documentation

void gf::AntiAliasingEffect::setFramebufferSize ( Vector2f  size)

Set the framebuffer size.

Call this function when the size of the framebuffer changes.