platform_windows.h (555B)
1 #ifndef PLATFORM_WINDOWS_H 2 #define PLATFORM_WINDOWS_H 3 4 #include <stdbool.h> 5 #include <time.h> 6 7 #define PLATFORM_SCR_WIDTH 600 8 #define PLATFORM_SCR_HEIGHT 600 9 10 #define PLATFORM_SECOND 1000.0f 11 #define PLATFORM_FPS 60 12 #define PLATFORM_MS_PER_FRAME (PLATFORM_SECOND / PLATFORM_FPS) 13 #define PLATFORM_UPDATES_PER_SECOND 120 14 #define PLATFORM_MS_PER_UPDATE (PLATFORM_SECOND / PLATFORM_UPDATES_PER_SECOND) 15 16 PLATFORM_READ_ENTIRE_FILE(windows_read_entire_file); 17 PLATFORM_PRINT(windows_print); 18 PLATFORM_MEMORY_FREE(windows_memory_free); 19 20 #endif // PLATFORM_WINDOWS_H