Add ortographic camera
This commit is contained in:
parent
4a3dfeafdc
commit
8c4b7bff18
5 changed files with 202 additions and 14 deletions
12
hex_debug.h
Normal file
12
hex_debug.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue