summaryrefslogtreecommitdiff
path: root/src/platform.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/platform.h
parent855070a2870b7f2fe777fded9bb705385f6cd2e2 (diff)
switch between cpu and gpu rendering while running
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h
index e72bb8c..0a67946 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -179,7 +179,9 @@ typedef struct t_backbuffer
s32 width;
s32 height;
u8 *buffer; // 4bytes color + 1byte depth
+#ifdef OS_WIN
BITMAPINFO bitmapInfo;
+#endif
} backbuffer;
// NOT IMPLEMENTED ON LINUX: USE FLAGS_NONE
@@ -234,6 +236,8 @@ void platform_run_command(char *command);
void platform_window_make_current(platform_window *window);
void platform_init(int argc, char **argv);
void platform_destroy();
+void platform_setup_backbuffer(platform_window *window);
+void platform_setup_renderer();
void platform_set_icon(platform_window *window, image *img);
void platform_autocomplete_path(char *buffer, bool want_dir);
bool platform_directory_exists(char *path);