diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-06-12 14:56:50 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-06-12 14:56:50 +0200 |
| commit | 91e66fff08f6101eeffea22d78c68e53dde0d4f0 (patch) | |
| tree | d600a704f456c4ceb1f58a6802149a48c66265db /src/platform.h | |
| parent | ebd3c08d9c656557bd9692f23926ca46e96d5738 (diff) | |
working on cpu render layer, cleanup
Diffstat (limited to 'src/platform.h')
| -rw-r--r-- | src/platform.h | 16 |
1 files changed, 16 insertions, 0 deletions
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
{
|
