mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-12-21 19:09:58 +08:00
support 16 bits, 32 bits color, framebuffer map; remove redundant files
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user