
- Added asserts to make sure we detect similar bugs faster - Made simd shippable & configurable - Some documentation in oogabooga.c on configuration - Very optimized release build script - Cleaned some stuff up
38 lines
No EOL
975 B
C
38 lines
No EOL
975 B
C
|
|
|
|
///
|
|
// Build config stuff
|
|
|
|
#define RUN_TESTS 1
|
|
|
|
// This is only for people developing oogabooga!
|
|
#define OOGABOOGA_DEV 1
|
|
|
|
#define ENABLE_PROFILING 0
|
|
|
|
// Requires CPU to support at least SSE1 but I will be very surprised if you find a system today which don't.
|
|
#define ENABLE_SIMD 1
|
|
|
|
#define INITIAL_PROGRAM_MEMORY_SIZE MB(5)
|
|
|
|
typedef struct Context_Extra {
|
|
int monkee;
|
|
} Context_Extra;
|
|
// This needs to be defined before oogabooga if we want extra stuff in context
|
|
#define CONTEXT_EXTRA Context_Extra
|
|
|
|
#define GFX_RENDERER GFX_RENDERER_D3D11
|
|
|
|
// This defaults to "entry", but we can set it to anything (except "main" or other existing proc names"
|
|
#define ENTRY_PROC entry
|
|
|
|
// Ooga booga needs to be included AFTER configuration and BEFORE the program code
|
|
#include "oogabooga/oogabooga.c"
|
|
|
|
|
|
//
|
|
// Comment & Uncomment to swap projects
|
|
|
|
//#include "oogabooga/examples/renderer_stress_test.c"
|
|
// #include "oogabooga/examples/minimal_game_loop.c"
|
|
#include "entry_randygame.c" |