Files
amethyst/source/app.cpp

19 lines
438 B
C++

#include <3ds.h>
#include <amethyst/app.hpp>
#include <amethyst/utils.hpp>
namespace Amy {
void App::Run() {
pLast = Utils::GetTimeNano();
while (aptMainLoop() && !pExit) {
ull c = Utils::GetTimeNano();
pDelta = static_cast<double>(static_cast<double>(c) -
static_cast<double>(pLast)) *
0.000001;
pTime += pDelta * 0.001;
pLast = c;
Main();
}
}
} // namespace Amy