From 91e66fff08f6101eeffea22d78c68e53dde0d4f0 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 12 Jun 2020 14:56:50 +0200 Subject: working on cpu render layer, cleanup --- src/platform.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/platform.h') diff --git a/src/platform.h b/src/platform.h index 4be3938..bf0ae82 100644 --- a/src/platform.h +++ b/src/platform.h @@ -43,6 +43,7 @@ typedef struct t_search_result array work_queue; array files; array matches; + s32 match_count; u64 find_duration_us; array errors; bool show_error_message; // error occured @@ -167,6 +168,21 @@ typedef struct t_vec2 s32 y; } vec2; +typedef struct t_backbuffer_pixel +{ + s32 color; + u8 depth; +} backbuffer_pixel; + +typedef struct t_backbuffer +{ + s32 width; + s32 height; + u8 *pixels; // 5bytes color + u8 *buffer; // 4bytes color + 1byte depth + BITMAPINFO bitmapInfo; +} backbuffer; + // NOT IMPLEMENTED ON LINUX: USE FLAGS_NONE typedef enum t_window_flags { -- cgit v1.2.3-70-g09d2