diff options
Diffstat (limited to 'include/video.h')
| -rw-r--r-- | include/video.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h new file mode 100644 index 0000000..85a670c --- /dev/null +++ b/include/video.h @@ -0,0 +1,23 @@ +#include <stdint.h> +#include "multiboot.h" + +#ifndef VIDEO_H +#define VIDEO_H + +#define MULTIBOOT_GODS_WIDTH 640 +#define MULTIBOOT_GODS_HEIGHT 480 +#define MULTIBOOT_VIDEO_BPP 24 + +typedef uint32_t macaroni_color; +static macaroni_color RED = 0xFF0000; +static macaroni_color GREEN = 0x00FF00; +static macaroni_color BLUE = 0x0000FF; + +static uint8_t* video_framebuffer; +static uint32_t pitch; +static uint32_t pixel_width; + +void init_video(multiboot_info_t* p_multiboot_info); +void put_pixel(macaroni_color color, uint16_t x, uint16_t y); + +#endif // VIDEO_H |
