work on app class and start work on iron

This commit is contained in:
2025-11-24 10:02:22 +01:00
parent c3a0e936c8
commit f0117e07d4
12 changed files with 123 additions and 30 deletions

15
source/app.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <3ds.h>
#include <amethyst/app.hpp>
#include <amethyst/ctru.hpp>
namespace amy {
void app::run() {
while (aptMainLoop()) {
ull c = ctru::getTime();
m_delta = static_cast<double>(c) - static_cast<float>(m_last);
m_last = c;
main();
}
}
} // namespace amy