blu_os
Loading...
Searching...
No Matches
framebuffer.h
Go to the documentation of this file.
1
8
9#ifndef BLU_OS_FRAMEBUFFER_H
10#define BLU_OS_FRAMEBUFFER_H
11
12#include <arch/x86/boot/multiboot.h>
13#include <stdint.h>
14
15typedef struct {
16 uint8_t* address;
17 uint32_t pitch;
18 uint32_t width;
19 uint32_t height;
20 uint8_t bitsPerPixel;
22
23void framebufferInit(MultibootInfo* multibootInfo, Framebuffer* framebuffer);
24
25void framebufferPutPixel(Framebuffer* framebuffer, uint32_t x, uint32_t y, uint32_t rgb);
26
27void framebufferClear(Framebuffer* framebuffer, uint32_t rgb);
28
29void framebufferScroll(Framebuffer* framebuffer, uint32_t rows);
30
31#endif
Fixed-width integer types.
Definition framebuffer.h:15