2022-03-22 18:13:06 +00:00
|
|
|
/* date = March 22nd 2022 2:29 am */
|
|
|
|
|
|
|
|
#ifndef LUMENARIUM_FIRST_H
|
|
|
|
#define LUMENARIUM_FIRST_H
|
|
|
|
|
|
|
|
typedef struct App_State App_State;
|
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
// Environment
|
2022-03-22 18:13:06 +00:00
|
|
|
#include "lumenarium_memory.cpp"
|
|
|
|
#include "lumenarium_string.cpp"
|
2022-04-12 05:53:32 +00:00
|
|
|
#include "lumenarium_random.h"
|
2022-03-22 18:13:06 +00:00
|
|
|
#include "lumenarium_input.cpp"
|
2022-04-06 18:29:32 +00:00
|
|
|
#include "lumenarium_texture_atlas.cpp"
|
|
|
|
#include "lumenarium_hash.cpp"
|
2022-04-12 05:53:32 +00:00
|
|
|
#include "lumenarium_geometry.h"
|
|
|
|
|
2022-04-12 06:01:17 +00:00
|
|
|
global Allocator* global_scratch_; // gets reset at frame boundaries
|
|
|
|
#define scratch_get(ident) Allocator_Scratch ident = Allocator_Scratch(global_scratch_)
|
2022-04-12 05:53:32 +00:00
|
|
|
#include "lumenarium_bsp.h"
|
2022-03-22 18:13:06 +00:00
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
// Engine
|
2022-04-06 18:29:32 +00:00
|
|
|
typedef struct Assembly_Strip Assembly_Strip;
|
|
|
|
#include "engine/lumenarium_engine_output.h"
|
2022-03-22 18:13:06 +00:00
|
|
|
#include "engine/lumenarium_engine_assembly.h"
|
2022-04-06 18:29:32 +00:00
|
|
|
#include "engine/output/lumenarium_output_uart.h"
|
|
|
|
#include "engine/output/lumenarium_output_sacn.h"
|
2022-03-22 18:13:06 +00:00
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
// Editor
|
2022-04-06 18:29:32 +00:00
|
|
|
#include "editor/lumenarium_editor_ui.h"
|
2022-03-27 10:47:18 +00:00
|
|
|
#include "editor/lumenarium_editor_renderer.h"
|
2022-03-29 16:09:50 +00:00
|
|
|
#include "editor/lumenarium_editor.h"
|
2022-03-22 18:13:06 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////
|
|
|
|
// Lumenarium Runtime Environment
|
|
|
|
|
|
|
|
global Allocator* permanent;
|
|
|
|
|
|
|
|
#if defined(DEBUG)
|
|
|
|
# include "lumenarium_tests.cpp"
|
|
|
|
#else
|
|
|
|
# define run_tests()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////
|
|
|
|
// Lumenarium State
|
|
|
|
|
|
|
|
typedef b32 App_State_Flags;
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
AppState_None = 0,
|
|
|
|
AppState_IsRunning = 1,
|
2022-03-29 16:09:50 +00:00
|
|
|
AppState_RunEditor = 2,
|
2022-03-22 18:13:06 +00:00
|
|
|
};
|
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
struct App_Init_Desc
|
|
|
|
{
|
|
|
|
u32 assembly_cap;
|
|
|
|
};
|
|
|
|
|
2022-03-22 18:13:06 +00:00
|
|
|
struct App_State
|
|
|
|
{
|
|
|
|
App_State_Flags flags;
|
|
|
|
|
2022-04-06 18:29:32 +00:00
|
|
|
Input_State* input_state;
|
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
Assembly_Array assemblies;
|
2022-04-06 18:29:32 +00:00
|
|
|
Output output;
|
2022-03-29 16:09:50 +00:00
|
|
|
|
|
|
|
Editor* editor;
|
2022-03-22 18:13:06 +00:00
|
|
|
};
|
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
#include "engine/lumenarium_engine_assembly.cpp"
|
|
|
|
#include "engine/lumenarium_engine.cpp"
|
2022-04-06 18:29:32 +00:00
|
|
|
#include "engine/lumenarium_engine_output.cpp"
|
|
|
|
#include "engine/output/lumenarium_output_uart.cpp"
|
|
|
|
#include "engine/output/lumenarium_output_sacn.cpp"
|
2022-03-27 10:47:18 +00:00
|
|
|
|
2022-04-06 18:29:32 +00:00
|
|
|
#include "editor/lumenarium_editor_ui.cpp"
|
2022-03-27 10:47:18 +00:00
|
|
|
#include "editor/lumenarium_editor_renderer.cpp"
|
2022-04-12 05:53:32 +00:00
|
|
|
#include "editor/lumenarium_editor_sculpture_visualizer.cpp"
|
2022-03-27 10:47:18 +00:00
|
|
|
#include "editor/lumenarium_editor.cpp"
|
|
|
|
|
|
|
|
|
2022-03-22 18:13:06 +00:00
|
|
|
#endif //LUMENARIUM_FIRST_H
|