diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2023-07-28 09:45:33 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2023-07-28 10:30:42 +0000 |
| commit | 22db1a2e1b41bed7d5083ce68888a583881d58bf (patch) | |
| tree | b42b453e3911e49cec026929f81cbf5a289313b6 /src/rendering.c | |
| parent | 6c16f339224a4736f4ed57d15bb3e5f968a635ab (diff) | |
Flesh out cmakelists & streamline some functions
Diffstat (limited to 'src/rendering.c')
| -rw-r--r-- | src/rendering.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rendering.c b/src/rendering.c index 755eda0..580be9e 100644 --- a/src/rendering.c +++ b/src/rendering.c @@ -22,7 +22,7 @@ i32 drawcall_len = 0; /* Clear the screen, * To be used inbetween draw calls */ void render_begin(Window *w) { -#ifdef DEBUG +#ifdef DAW_BUILD_DEBUG SDL_SetRenderDrawColor(w->renderer, 0x10, 0x0a, 0x33, 0x00); #else SDL_SetRenderDrawColor(w->renderer, 0x00, 0x00, 0x00, 0x00); @@ -42,7 +42,7 @@ void render_present(Window *w) { break; case RenderDrawCallType_Sprite: { -#ifdef DEBUG +#ifdef DAW_BUILD_DEBUG if (dc.data.sprite.sprite == NULL) { __asm__("int3;"); WARN("Sprite %lx in drawcall %d/%d had NULL reference", dc.data.sprite.sprite, i, drawcall_len); @@ -110,7 +110,7 @@ void engine_draw_uitree(UITree *t) { void engine_draw_sprite(Sprite *s, v2_i32 *pos, f32 scale) { if (drawcall_len + 1 >= drawcall_limit) return; -#ifdef DEBUG +#ifdef DAW_BUILD_DEBUG if (s == NULL) __asm__("int3;"); #endif drawcalls[drawcall_len++] = (RenderDrawCall){ @@ -127,7 +127,7 @@ void engine_draw_sprite(Sprite *s, v2_i32 *pos, f32 scale) { void engine_draw_sprite_ex(Sprite *s, v2_i32 *pos, f32 scale, Engine_color colormod) { if (drawcall_len + 1 >= drawcall_limit) return; -#ifdef DEBUG +#ifdef DAW_BUILD_DEBUG if (s == NULL) __asm__("int3;"); #endif drawcalls[drawcall_len++] = (RenderDrawCall){ |
