mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
feat: Massive OS expansion with IPC, Sound & TTS, Block layer, FAT32/ext2/sysfs, Signals, Syscalls, Modules, Drivers & 50+ LazyBox applets
This commit is contained in:
1 parent
5662be29f5
commit
d680335f05
64 files changed
+2370
-166
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#ifndef _DRIVERS_FB_H
|
||||
#define _DRIVERS_FB_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t* address;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t pitch;
|
||||
uint8_t bpp;
|
||||
bool active;
|
||||
} fb_info_t;
|
||||
|
||||
void fb_init(void);
|
||||
const fb_info_t* fb_get_info(void);
|
||||
void fb_put_pixel(uint32_t x, uint32_t y, uint32_t color);
|
||||
void fb_draw_rect(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t color);
|
||||
void fb_clear(uint32_t color);
|
||||
void fb_draw_char(uint32_t x, uint32_t y, char c, uint32_t fg, uint32_t bg);
|
||||
void fb_draw_string(uint32_t x, uint32_t y, const char* str, uint32_t fg, uint32_t bg);
|
||||
|
||||
#endif // _DRIVERS_FB_H
|
||||
Reference in new issue
Block a user