add clearscreen and wip func

This commit is contained in:
neon443
2025-08-11 02:27:08 -04:00
parent ff4c3f52ad
commit 631bac1e3f

View File

@@ -8,6 +8,20 @@
#define screenSize width * height * 2 #define screenSize width * height * 2
#define bufSize screenSize * 2 #define bufSize screenSize * 2
inline void clearScreen(void) {
u8 *frame = gfxGetFramebuffer(GFX_BOTTOM, GFX_LEFT, NULL, NULL)
memset(frame, 0, 320 * 240 * 3)
}
void cleanup() {
}
void writePicToFBuff(void *fb, void *img, u16 x, u16 y, u16 width, u16 height) {
u8 *fb_8 = (u8*) img
u16 *img_16 = (u16*) img
}
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
gfxInitDefault(); gfxInitDefault();