support 16 bits, 32 bits color, framebuffer map; remove redundant files

This commit is contained in:
idea4good
2017-12-13 22:29:28 +08:00
parent 50b144b4c8
commit 565ef43706
43 changed files with 590 additions and 1096 deletions

View File

@@ -15,10 +15,12 @@ void do_assert(const char* file, int line);
void log_out(const char* log);
unsigned int GLT_RGB(unsigned char r, unsigned char g, unsigned char b);
unsigned char GLT_RGB_R(unsigned int color);
unsigned char GLT_RGB_G(unsigned int color);
unsigned char GLT_RGB_B(unsigned int color);
#define GLT_RGB(r, g, b) ((r << 16) | (g << 8) | b)
#define GLT_RGB_R(rgb) ((rgb >> 16) & 0xFF)
#define GLT_RGB_G(rgb) ((rgb >> 8) & 0xFF)
#define GLT_RGB_B(rgb) (rgb & 0xFF)
#define GLT_RGB_32_to_16(rgb) (((rgb & 0xFF) >> 3) | ((rgb & 0xFC00) >> 5) | ((rgb & 0xF80000) >> 8))
#define GLT_RGB_16_to_32(rgb) (((rgb & 0x1F) << 3) | ((rgb & 0x7E0) << 5) | ((rgb & 0xF800) << 8))
typedef struct _T_TIME
{