29 lines
716 B
C++
29 lines
716 B
C++
#include "fennec_core.h"
|
|
|
|
int main() {
|
|
Fennec::init();
|
|
|
|
u32 white = Fennec::color(255, 255, 255);
|
|
u32 red = Fennec::color(255, 0, 0);
|
|
u32 blue = Fennec::color(0, 0, 255);
|
|
|
|
while (aptMainLoop()) {
|
|
hidScanInput();
|
|
if (hidKeysDown() & KEY_START) break;
|
|
|
|
Fennec::beginFrame();
|
|
|
|
Fennec::selectScreen(GFX_TOP);
|
|
Fennec::drawRect(10, 10, 380, 220, blue); // Un fond bleu
|
|
Fennec::drawText(50, 100, "BIENVENUE SUR FENNEC", white);
|
|
|
|
Fennec::selectScreen(GFX_BOTTOM);
|
|
Fennec::drawRect(50, 50, 100, 100, red);
|
|
Fennec::drawText(60, 160, "Carré rouge :)", white);
|
|
|
|
Fennec::endFrame();
|
|
}
|
|
|
|
Fennec::exit();
|
|
return 0;
|
|
} |