mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat(kernel): Add eBPF Virtual Machine & Verifier, VMA Memory Mapper, Sysfs KObject Tree, Unix98 PTY, and 2D Canvas Graphics Engine
This commit is contained in:
1 parent
8a90d88f70
commit
65c916d6ac
12 files changed
+1133
-6
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#ifndef _DRIVERS_CANVAS_H
|
||||
#define _DRIVERS_CANVAS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define COLOR_BLACK 0x00000000
|
||||
#define COLOR_WHITE 0x00FFFFFF
|
||||
#define COLOR_RED 0x00FF4444
|
||||
#define COLOR_GREEN 0x0044FF44
|
||||
#define COLOR_BLUE 0x004488FF
|
||||
#define COLOR_YELLOW 0x00FFDD44
|
||||
#define COLOR_CYAN 0x0044DDFF
|
||||
#define COLOR_DARK_GRAY 0x00222222
|
||||
#define COLOR_LIGHT_GRAY 0x00CCCCCC
|
||||
#define COLOR_NAVY 0x001B2A4A
|
||||
#define COLOR_TITLE_BAR 0x002D3748
|
||||
#define COLOR_ACCENT 0x003182CE
|
||||
|
||||
void canvas_init(void);
|
||||
void canvas_clear(uint32_t color);
|
||||
void canvas_draw_pixel(int x, int y, uint32_t color);
|
||||
void canvas_draw_line(int x0, int y0, int x1, int y1, uint32_t color);
|
||||
void canvas_draw_rect(int x, int y, int w, int h, uint32_t color, bool filled);
|
||||
void canvas_draw_circle(int cx, int cy, int r, uint32_t color, bool filled);
|
||||
void canvas_draw_char(int x, int y, char c, uint32_t color, uint32_t bg_color);
|
||||
void canvas_draw_string(int x, int y, const char* str, uint32_t color, uint32_t bg_color);
|
||||
void canvas_render_desktop_mockup(void);
|
||||
void canvas_present(void);
|
||||
|
||||
#endif // _DRIVERS_CANVAS_H
|
||||
Reference in new issue
Block a user