mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 13:26:17 +00:00
add clearscreen and wip func
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user