summaryrefslogtreecommitdiff
path: root/effects.cpp
blob: c5a07af4df4de5cf57c4fe74d1858b78641d4fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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_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);
}