This repository has been archived on 2025-02-04. You can view files and clone it, but cannot push or open issues or pull requests.
helpless/build.c

52 lines
1.8 KiB
C
Raw Normal View History

///
// Build config stuff
2024-07-02 19:12:31 +02:00
2024-07-28 17:17:58 +02:00
#define INITIAL_PROGRAM_MEMORY_SIZE MB(5)
2024-07-17 13:34:52 +02:00
// You might want to increase this if you get a log warning saying the temporary storage was overflown.
// In many cases, overflowing the temporary storage should be fine since it just wraps back around and
// allocations made way earlier in the frame are likely not used anymore.
// This might however not always be the case, so it's probably a good idea to make sure you always have
// enough temporary storage for your game.
#define TEMPORARY_STORAGE_SIZE MB(2)
// Enable VERY_DEBUG if you are having memory bugs to detect things like heap corruption earlier.
// #define VERY_DEBUG 1
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
2024-07-02 19:12:31 +02:00
// This defaults to "entry", but we can set it to anything (except "main" or other existing proc names"
2024-07-15 21:40:27 +02:00
#define ENTRY_PROC entry
2024-07-02 19:12:31 +02:00
// Ooga booga needs to be included AFTER configuration and BEFORE the program code
#include "oogabooga/oogabooga.c"
2024-07-02 12:48:28 +07:00
//
// Comment & Uncomment these to swap projects (only include one at a time)
//
2024-07-15 21:40:27 +02:00
// This is a minimal starting point for new projects. Copy & rename to get started
// #include "oogabooga/examples/minimal_game_loop.c"
2024-08-21 20:17:05 +02:00
// #include "oogabooga/examples/text_rendering.c"
// #include "oogabooga/examples/custom_logger.c"
// #include "oogabooga/examples/renderer_stress_test.c"
// #include "oogabooga/examples/tile_game.c"
2024-07-16 14:11:00 +02:00
// #include "oogabooga/examples/audio_test.c"
// #include "oogabooga/examples/custom_shader.c"
// #include "oogabooga/examples/growing_array_example.c"
// #include "oogabooga/examples/input_example.c"
2024-08-28 15:54:40 +01:00
// #include "oogabooga/examples/sprite_animation.c"
2024-08-23 15:57:35 +02:00
// #include "oogabooga/examples/sanity_tests.c"
// This is where you swap in your own project!
2024-08-28 15:54:40 +01:00
#include "entry_helpless.c"