Ray casting engine implemented on the mBuino platform using the ST7735 LCD controller.
Embed:
(wiki syntax)
Show/hide line numbers
common.h
00001 #ifndef __COMMON_H__ 00002 #define __COMMON_H__ 00003 00004 #ifndef PI 00005 #define PI 3.14159265358979323846f 00006 #endif 00007 00008 #define PI2 6.28318530717958647692f 00009 00010 #define CELL_SIZE 32 00011 #define CELL_SIZE_SHIFT 5 00012 #define CELL_SIZE_MASK 0x1f 00013 #define CELL_BIT_MASK 0xffe0 00014 00015 #define FLOAT2INT(x) ((int)((x) + 0.5)) 00016 00017 #endif //__COMMON_H__
Generated on Sat Jul 16 2022 14:43:34 by 1.7.2