summaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-06-17 15:43:17 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-06-17 15:43:17 +0200
commitdb24b566ba1be51255b98aafc34a117aaec65f39 (patch)
treefbbc8289cf3d6027554ec45d899e74e452aec156 /src/render.h
parent855070a2870b7f2fe777fded9bb705385f6cd2e2 (diff)
switch between cpu and gpu rendering while running
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/render.h b/src/render.h
index c02c740..92b58e2 100644
--- a/src/render.h
+++ b/src/render.h
@@ -30,7 +30,7 @@ typedef enum t_triangle_direction
TRIANGLE_RIGHT,
} triangle_direction;
-s32 global_use_gpu = 0;
+s32 global_use_gpu = 1;
u8 render_depth = 1;
vec4 current_scissor;
@@ -50,7 +50,6 @@ void render_image_tint(image *image, s32 x, s32 y, s32 width, s32 height, color
s32 render_text(font *font, s32 x, s32 y, char *text, color tint);
s32 render_text_ellipsed(font *font, s32 x, s32 y, s32 maxw, char *text, color tint);
s32 render_text_cutoff(font *font, s32 x, s32 y, char *text, color tint, u16 cutoff_width);
-s32 render_text_vertical(font *font, s32 x, s32 y, char *text, color tint);
s32 render_text_with_cursor(font *font, s32 x, s32 y, char *text, color tint, s32 cursor_pos);
s32 render_text_with_selection(font *font, s32 x, s32 y, char *text, color tint, s32 selection_start, s32 selection_length);