blob: 079445a845d5eba7663c8a5c8039d6ed42cb6224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <raylib.h>
#define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__)
#define BLANK_DEFAULT -1
#define NULL_TERM '\0'
#define NULL_TERM_SZ 1
typedef int i32;
typedef long long i64;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef float f32;
typedef double f64;
// 24.8 format
typedef i32 fx32;
#define FIXED_POINT_BITS 8
#define FIXED_POINT_ONE (1 << FIXED_POINT_BITS)
#define TO_FIXED(x) ((fx32)(x) << FIXED_POINT_BITS)
#define FROM_FIXED(x) ((x) >> FIXED_POINT_BITS)
|