polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

common.h (542B)


      1 
      2 #ifndef POLYADVENT_COMMON_H
      3 #define POLYADVENT_COMMON_H
      4 
      5 typedef int bool;
      6 #define false 0
      7 #define true 1
      8 
      9 #define MAT3_ELEMS 9
     10 #define MAT4_ELEMS 16
     11 #define U64HOB 0x8000000000000000
     12 
     13 #define SLAB(f) "etc/slab/" f
     14 #define RESOURCE(f) "etc/shaders/" f
     15 
     16 typedef unsigned char u8;
     17 typedef signed char s8;
     18 
     19 typedef unsigned short u16;
     20 typedef signed short s16;
     21 
     22 typedef unsigned int u32;
     23 typedef signed int s32;
     24 
     25 typedef unsigned long long u64;
     26 typedef signed long long s64;
     27 
     28 struct point {
     29   double x, y;
     30 };
     31 
     32 
     33 #endif /* POLYADVENT_COMMON_H */