From db24b566ba1be51255b98aafc34a117aaec65f39 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 17 Jun 2020 15:43:17 +0200 Subject: switch between cpu and gpu rendering while running --- src/render.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render.h') 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); -- cgit v1.2.3-70-g09d2