clipping to intersect of parent and box

This commit is contained in:
Krzosa Karol
2025-01-15 11:07:51 +01:00
parent d99a111742
commit 6a1bb5a881
6 changed files with 42 additions and 17 deletions

View File

@@ -25,12 +25,19 @@ int main(int argc, char **argv) {
ma_arena_t *arena = ma_create(ma_default_reserve_size);
meta_app(arena);
bool execute_python_snippets = true; // make sure to not abuse just for quick maths
bool run_server = false;
b32 generate_math_library = false; // WARNING: be wary of this, cause it might break build file
b32 execute_python_snippets = false; // make sure to not abuse just for quick maths
b32 run_server = false;
bool core_test_target = false;
bool win32_target = true;
bool wasm_target = false;
b32 core_test_target = false;
b32 win32_target = true;
b32 wasm_target = false;
if (generate_math_library) {
os_set_working_dir("../src/core");
os_systemf("py core_math_gen.py");
os_set_working_dir("../../build");
}
if (execute_python_snippets) {
sb8_t *sb = sb8_serial_begin(arena);
@@ -38,11 +45,11 @@ int main(int argc, char **argv) {
for (sb8_node_t *it = sb->first; it; it = it->next) {
s8_t abs = it->string;
bool is_c_file = s8_ends_with(abs, s8_lit(".c"), true) || s8_ends_with(abs, s8_lit(".cpp"), true) || s8_ends_with(abs, s8_lit(".h"), true) || s8_ends_with(abs, s8_lit(".hpp"), true);
b32 is_c_file = s8_ends_with(abs, s8_lit(".c"), true) || s8_ends_with(abs, s8_lit(".cpp"), true) || s8_ends_with(abs, s8_lit(".h"), true) || s8_ends_with(abs, s8_lit(".hpp"), true);
if (!is_c_file) {
continue;
}
bool is_build_file = s8_ends_with(abs, s8_lit("build_file.c"), true);
b32 is_build_file = s8_ends_with(abs, s8_lit("build_file.c"), true);
if (is_build_file) {
continue;
}