medfall

A super great game engine
Log | Files | Refs

commit 565de2b955de43c21200a930e8321997925ad237
parent fe8439efc08e2ae582ca23af009dab7509b8fa33
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Jun 30 22:29:38 +0300

Add breakbools

Diffstat:
breakbools.cc | 4++++
intrinsics.h | 9+++++++++
make.lua | 2+-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/breakbools.cc b/breakbools.cc @@ -0,0 +1,4 @@ +bool break1 = false; +bool break2 = false; +bool break3 = false; +bool break4 = false; diff --git a/intrinsics.h b/intrinsics.h @@ -244,3 +244,12 @@ static T lerp( T a, float t, T b ) { ASSERT( t >= 0.0f && t <= 1.0f ); return a * ( 1.0f - t ) + b * t; } + +/* + * these are meant to be used for breaking deep in leaf code on keypresses etc + * defined in breakbools.cc + */ +extern bool break1; +extern bool break2; +extern bool break3; +extern bool break4; diff --git a/make.lua b/make.lua @@ -1,6 +1,6 @@ require( "scripts.gen_makefile" ) -local common_objs = { "memory_arena", "log", "ggformat", "strlcpy", "strlcat", "strtonum", "profiler", "stats", "rng/well512" } +local common_objs = { "memory_arena", "log", "ggformat", "strlcpy", "strlcat", "strtonum", "profiler", "stats", "rng/well512", "breakbools" } local game_objs = { "work_queue", "renderer", "shaders", "gl", "glad", "immediate", "text_renderer", "obj", common_objs } local game_libs = { "glfw", "stb_truetype", "tinyobjloader" }