2022-03-22 18:13:06 +00:00
|
|
|
/* date = March 22nd 2022 2:12 am */
|
|
|
|
|
|
|
|
#ifndef LUMENARIUM_PLATFORM_COMMON_INCLUDES_H
|
|
|
|
#define LUMENARIUM_PLATFORM_COMMON_INCLUDES_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#if !defined(GUESS_INTS)
|
|
|
|
# include <stdint.h>
|
|
|
|
#endif // !defined(GUESS_INTS)
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
#include "lumenarium_assert.h"
|
|
|
|
|
2022-04-07 12:02:12 +00:00
|
|
|
#define STB_TRUETYPE_IMPLEMENTATION
|
|
|
|
#define STBTT_assert(x) assert(x)
|
|
|
|
#include "../libs/stb_truetype.h"
|
|
|
|
|
2022-04-12 05:53:32 +00:00
|
|
|
#define STB_SPRINTF_IMPLEMENTATION
|
|
|
|
#include "../libs/stb_sprintf.h"
|
|
|
|
|
2022-03-29 16:09:50 +00:00
|
|
|
// NOTE(PS): only need the opengl extension headers
|
|
|
|
// when running on a platform that is using opengl 3.3+
|
|
|
|
#if !defined(PLATFORM_wasm)
|
|
|
|
# include "glcorearb.h"
|
|
|
|
# include "glext.h"
|
|
|
|
# include "wglext.h"
|
|
|
|
#endif
|
2022-03-27 10:47:18 +00:00
|
|
|
|
2022-03-22 18:13:06 +00:00
|
|
|
#define HANDMADE_MATH_IMPLEMENTATION
|
|
|
|
#define HANDMADE_MATH_CPP_MODE
|
|
|
|
#define HANDMADE_MATH_STATIC
|
|
|
|
#include "../libs/HandmadeMath.h"
|
|
|
|
|
|
|
|
typedef hmm_v2 v2;
|
|
|
|
typedef hmm_v3 v3;
|
|
|
|
typedef hmm_v4 v4;
|
|
|
|
typedef hmm_mat4 m44;
|
|
|
|
|
|
|
|
#endif //LUMENARIUM_PLATFORM_COMMON_INCLUDES_H
|