diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-22 09:14:51 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-22 09:14:51 +0200 |
commit | 95292027625e905080f37f585402f49ec49bc97f (patch) | |
tree | fe056d9bc402a38e47fe96afef2376f3f2653bb8 /src/drivers/video/video.h | |
parent | 1ac14d73950798e9a867778a2943adfe88557e61 (diff) | |
download | abaos-95292027625e905080f37f585402f49ec49bc97f.tar.gz abaos-95292027625e905080f37f585402f49ec49bc97f.tar.bz2 |
moved color handling to video driver from generic VGA driver
Diffstat (limited to 'src/drivers/video/video.h')
-rw-r--r-- | src/drivers/video/video.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drivers/video/video.h b/src/drivers/video/video.h index d17a51d..6da8e60 100644 --- a/src/drivers/video/video.h +++ b/src/drivers/video/video.h @@ -46,4 +46,22 @@ bool video_supports_mode( void *obj, const video_mode_t mode ); bool video_set_mode( void *obj, const video_mode_t mode ); bool video_switch_mode( void *obj, const video_mode_t *mode ); +typedef struct { + int R; + int G; + int B; +} video_rgb_color_t; + +extern const video_rgb_color_t VIDEO_RGB_COLOR_BLACK; +extern const video_rgb_color_t VIDEO_RGB_COLOR_BLUE; +extern const video_rgb_color_t VIDEO_RGB_COLOR_GREEN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_CYAN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_RED; +extern const video_rgb_color_t VIDEO_RGB_COLOR_MAGENTA; +extern const video_rgb_color_t VIDEO_RGB_COLOR_BROWN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_GRAY; +extern const video_rgb_color_t VIDEO_RGB_COLOR_WHITE; + +video_rgb_color_t video_make_rgb_color( const int R, const int G, const int B ); + #endif // VIDEO_H |