From 8ea6a3c8621287d11296b8300029f32a27743d9a Mon Sep 17 00:00:00 2001 From: nasr Date: Thu, 16 Apr 2026 17:10:02 +0200 Subject: feature(checkpoint): checkpoint cleaning up base library --- source/platform/platform.c | 12 -------- source/platform/platform.h | 56 -------------------------------------- source/platform/platform_include.h | 7 ----- 3 files changed, 75 deletions(-) delete mode 100644 source/platform/platform.c delete mode 100644 source/platform/platform.h delete mode 100644 source/platform/platform_include.h (limited to 'source/platform') diff --git a/source/platform/platform.c b/source/platform/platform.c deleted file mode 100644 index 2e7bbad..0000000 --- a/source/platform/platform.c +++ /dev/null @@ -1,12 +0,0 @@ -internal inline void -sleep_ms(long ms) -{ - struct timespec ts; - ts.tv_sec = ms / 1000; - ts.tv_nsec = (ms % 1000) * 1000000L; - - while (nanosleep(&ts, &ts)) - { - NULL; - } -} diff --git a/source/platform/platform.h b/source/platform/platform.h deleted file mode 100644 index da8e065..0000000 --- a/source/platform/platform.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef PLATFORM_H -#define PLATFORM_H - -#define NIL 0 - -#include -#include - #include -#include -#include - -typedef struct WindowProperties WindowProperties; -struct WindowProperties -{ - i32 x; - i32 y; - u32 height; - u32 width; - u32 border_width; - i32 window_depth; - u32 window_class; - u64 value_mask; - -}; - -typedef struct vertex vertex; - -struct vertex -{ - i32 x; - i32 y; - i32 z; -}; - -typedef struct display_pos display_pos; - -struct display_pos -{ - i32 x; - i32 y; - -}; - -typedef struct pos pos; -struct pos -{ - i32 x; - i32 y; - i32 z; - -} ; - - - - -#endif /* PLATFORM_H */ diff --git a/source/platform/platform_include.h b/source/platform/platform_include.h deleted file mode 100644 index 886c6b8..0000000 --- a/source/platform/platform_include.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef PLATFORM_INCLUDE_H -#define PLATFORM_INCLUDE_H - -#include "platform.h" -#include "platform.c" - -#endif /* PLATFORM_INCLUDE_H */ -- cgit v1.3