diff options
author | Juan Manuel Tomas <jtomas1815@gmail.com> | 2022-01-20 05:18:00 -0300 |
---|---|---|
committer | Juan Manuel Tomas <jtomas1815@gmail.com> | 2022-01-20 05:18:00 -0300 |
commit | aca708aa91f9db51a69f27e3e855b24144bd26ed (patch) | |
tree | ed0ae21dbf421ea115809c78bae1cf2fd69ccc60 /platform.c | |
parent | 9384448fd3e54d9d787d7c35bc1069487ab07d88 (diff) | |
download | cannons-aca708aa91f9db51a69f27e3e855b24144bd26ed.tar.gz cannons-aca708aa91f9db51a69f27e3e855b24144bd26ed.zip |
Make mask brush a circle
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ double GetCurrentTimestamp() { return (double) SDL_GetTicks64() / 1000.0; } -SDL_Texture *createTiledTexture(SDL_Renderer *context, const char *filename, int width, int height) { +SDL_Texture *CreateTiledTexture(SDL_Renderer *context, const char *filename, int width, int height) { SDL_Surface *texture_surface = SDL_LoadBMP(filename); SDL_Texture *texture_tile = SDL_CreateTextureFromSurface(context, texture_surface); int tile_w = texture_surface->w; @@ -48,9 +48,9 @@ void PlatformMain(void (*GameMain)(void)) { context = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); - background = createTiledTexture(context, "background.bmp", WINDOW_W, WINDOW_H); + background = CreateTiledTexture(context, "background.bmp", WINDOW_W, WINDOW_H); - foreground = createTiledTexture(context, "foreground.bmp", WINDOW_W, WINDOW_H); + foreground = CreateTiledTexture(context, "foreground.bmp", WINDOW_W, WINDOW_H); SDL_SetTextureBlendMode(foreground, SDL_BLENDMODE_MOD); terrain = SDL_CreateTexture(context, |