mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
19 lines
882 B
C
19 lines
882 B
C
#ifndef SCREEN_GRAPHICS_H
|
|
#define SCREEN_GRAPHICS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define rgb(r,g,b) ( ((r) << 16 | (g) << 8 | (b)) & 0x00ffffff )
|
|
|
|
void drawPixel(int32_t x, int32_t y, uint32_t color);
|
|
void drawLine(int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t color);
|
|
void drawRect(int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t color);
|
|
void drawTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, uint32_t color);
|
|
void drawCircle(int32_t x, int32_t y, uint16_t radius, uint32_t color);
|
|
void boundaryFill(int32_t x, int32_t y, uint32_t fillColor, uint32_t boundaryColor);
|
|
void fillRect(int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t color);
|
|
void fillTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, uint32_t color);
|
|
void fillCircle(int32_t x, int32_t y, uint16_t radius, uint32_t color);
|
|
|
|
#endif
|