22 lines
499 B
C
22 lines
499 B
C
#ifndef ENGINE_POSTFX_H
|
|
#define ENGINE_POSTFX_H
|
|
|
|
#include <raylib.h>
|
|
|
|
typedef struct {
|
|
Shader shader;
|
|
int resolutionLoc;
|
|
int strengthLoc;
|
|
int timeLoc;
|
|
float strength;
|
|
float time;
|
|
} PostProcessing;
|
|
|
|
PostProcessing CreatePostFX(const char *shaderPath);
|
|
void UpdatePostFX(PostProcessing *postFX);
|
|
void UpdateShaders(PostProcessing *postFX, int count);
|
|
void RenderPostFX(PostProcessing *postFX, RenderTexture2D *target);
|
|
void UnloadPostFX(PostProcessing *postFX);
|
|
|
|
#endif // ENGINE_POSTFX_H
|