| File | Purpose |
|---|---|
| core.hpp | platform, macros, types, utf8, allocators, io, print, arraylist |
| cpu_info.hpp | get info about the cup and which featrues/instructions it supports |
| bucket_allocator.hpp | a memory allocator that allocates in buckets |
| hashmap.hpp | implements a hashmap that uses linear probing |
| hooks.hpp | hooks are a storage for lambdas that can be run in bulk later |
| math.hpp | vector math |
| mesh.hpp | loading .obj files |
| scheduler.hpp | a system for handling animations and cude that should run later |
| testing.hpp | simple functions and macros that can be used to write tests |
These macros can be defined by the user to adjust the behavior of ftb.
FTB_INTERNAL_DEBUGenables ftb-internal checks and assertsFTB_STACKTRACE_INFOwhen enabled, the functionprint_stacktracewill print the stack trace of the current execution, this function is also used in other parts of ftb. IfFTB_STACKTRACE_INFOis not set, no stack info will be printed also in these cases.- On linux systems, if additionally
FTB_STACKTRACE_USE_GDBis defined, gdb will be used intanally to get a nice demangled view of the stacktrace. This macro only is relevant on Linux systems, it has no effect on other platforms.
- On linux systems, if additionally
FTB_GLOBAL_SHUTDOWN_HOOKenable thesystem_shutdown_hookthat is run when the program exits