refactor: header file for every module
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user