diff options
Diffstat (limited to 'effects.cpp')
-rw-r--r-- | effects.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/effects.cpp b/effects.cpp index 98d6984..c5a07af 100644 --- a/effects.cpp +++ b/effects.cpp @@ -1,9 +1,18 @@ #include "effects_software.cpp" +#include "effects_gl.cpp" static void Effect_DrawColor(real32 *Data, int Width, int Height, int BytesPerPixel, void *EffectBitmapAddress, uint16 ShaderProgram) { v4 Color = { Data[0], Data[1], Data[2], Data[3] }; blend_mode BlendMode = (blend_mode)Data[4]; - Effect_Software_DrawColor(Width, Height, BytesPerPixel, EffectBitmapAddress, Color, BlendMode); + Effect_GL_DrawColor(Width, Height, BytesPerPixel, EffectBitmapAddress, ShaderProgram, Color, BlendMode); + // Effect_Software_DrawColor(Width, Height, BytesPerPixel, EffectBitmapAddress, Color, BlendMode); +} + +static void +Effect_GaussianBlur(real32 *Data, int Width, int Height, int BytesPerPixel, void *EffectBitmapAddress, uint16 ShaderProgram) +{ + real32 Radius = Data[0]; + Effect_GL_GaussianBlur(Width, Height, BytesPerPixel, EffectBitmapAddress, ShaderProgram, Radius); } |