Add ortographic camera

This commit is contained in:
Phireh 2023-04-30 17:18:15 +02:00
commit 8c4b7bff18
5 changed files with 202 additions and 14 deletions

12
hex_debug.h Normal file
View file

@ -0,0 +1,12 @@
#ifndef HEX_DEBUG_H
#include <stdio.h>
#define DEBUG_VERBOSITY 1
#define log_err(str, ...) do { fprintf(stderr, "[ERROR] (%s:%d): " str "\n", __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#if (DEBUG_VERBOSITY > 0)
#define log_debug(str, ...) do { fprintf(stderr, "[DEBUG] (%s:%d): " str "\n", __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#else
#define log_debug(str, ...)
#endif
#endif