First commit
This commit is contained in:
29
runtime/gen/out.cpp
Normal file
29
runtime/gen/out.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user