#include <SFML/Config.h>
#include <SFML/Graphics/Types.h>
Go to the source code of this file.
Functions | |
CSFML_API sfPostFX * | sfPostFX_CreateFromFile (const char *Filename) |
Create a new post-fx from a file. | |
CSFML_API sfPostFX * | sfPostFX_CreateFromMemory (const char *Effect) |
Create a new post-fx from an effect source code. | |
CSFML_API void | sfPostFX_Destroy (sfPostFX *PostFX) |
Destroy an existing post-fx. | |
CSFML_API void | sfPostFX_SetParameter1 (sfPostFX *PostFX, const char *Name, float X) |
Change a parameter of a post-fx (1 float). | |
CSFML_API void | sfPostFX_SetParameter2 (sfPostFX *PostFX, const char *Name, float X, float Y) |
Change a parameter of a post-fx (2 floats). | |
CSFML_API void | sfPostFX_SetParameter3 (sfPostFX *PostFX, const char *Name, float X, float Y, float Z) |
Change a parameter of a post-fx (3 floats). | |
CSFML_API void | sfPostFX_SetParameter4 (sfPostFX *PostFX, const char *Name, float X, float Y, float Z, float W) |
Change a parameter of a post-fx (4 floats). | |
CSFML_API void | sfPostFX_SetTexture (sfPostFX *PostFX, const char *Name, sfImage *Texture) |
Set a texture parameter in a post-fx. | |
CSFML_API sfBool | sfPostFX_CanUsePostFX () |
Tell whether or not the system supports post-effects. |
CSFML_API sfBool sfPostFX_CanUsePostFX | ( | ) |
Tell whether or not the system supports post-effects.
CSFML_API sfPostFX* sfPostFX_CreateFromFile | ( | const char * | Filename | ) |
Create a new post-fx from a file.
Filename | : File to load |
CSFML_API sfPostFX* sfPostFX_CreateFromMemory | ( | const char * | Effect | ) |
Create a new post-fx from an effect source code.
Effect | : Source code of the effect |
CSFML_API void sfPostFX_Destroy | ( | sfPostFX * | PostFX | ) |
Destroy an existing post-fx.
PostFX | : PostFX to delete |
CSFML_API void sfPostFX_SetParameter1 | ( | sfPostFX * | PostFX, | |
const char * | Name, | |||
float | X | |||
) |
Change a parameter of a post-fx (1 float).
PostFX | : Post-effect to modify | |
Name | : Parameter name in the effect | |
X | : Value to assign |
CSFML_API void sfPostFX_SetParameter2 | ( | sfPostFX * | PostFX, | |
const char * | Name, | |||
float | X, | |||
float | Y | |||
) |
Change a parameter of a post-fx (2 floats).
PostFX | : Post-effect to modify | |
Name | : Parameter name in the effect | |
X,Y | : Values to assign |
CSFML_API void sfPostFX_SetParameter3 | ( | sfPostFX * | PostFX, | |
const char * | Name, | |||
float | X, | |||
float | Y, | |||
float | Z | |||
) |
Change a parameter of a post-fx (3 floats).
PostFX | : Post-effect to modify | |
Name | : Parameter name in the effect | |
X,Y,Z | : Values to assign |
CSFML_API void sfPostFX_SetParameter4 | ( | sfPostFX * | PostFX, | |
const char * | Name, | |||
float | X, | |||
float | Y, | |||
float | Z, | |||
float | W | |||
) |
Change a parameter of a post-fx (4 floats).
PostFX | : Post-effect to modify | |
Name | : Parameter name in the effect | |
X,Y,Z,W | : Values to assign |
Set a texture parameter in a post-fx.
PostFX | : Post-effect to modify | |
Name | : Texture name in the effect | |
Texture | : Image to set (pass NULL to use content of current framebuffer) |