transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

platform_linux.h (670B)


      1 #ifndef PLATFORM_LINUX_H
      2 #define PLATFORM_LINUX_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(linux_read_entire_file);
     17 PLATFORM_PRINT(linux_print);
     18 PLATFORM_MEMORY_FREE(linux_memory_free);
     19 
     20 #ifdef PLATFORM_HOTLOAD_GAME_CODE
     21 #define PLATFORM_GAME_LIB_PATH "./out/release/game.so"
     22 #endif // PLATFORM_HOTLOAD_GAME_CODE
     23 
     24 #endif // PLATFORM_LINUX_H