metaforce/Graphics/lib.cpp

30 lines
1.1 KiB
C++
Raw Normal View History

2022-02-01 00:06:54 +00:00
#include "include/lib.hpp"
namespace aurora {
void App_onAppLaunched(AppDelegate& cb) noexcept { return cb.onAppLaunched(); }
bool App_onAppIdle(AppDelegate& cb, float dt) noexcept { return cb.onAppIdle(dt); }
void App_onAppDraw(AppDelegate& cb) noexcept { cb.onAppDraw(); }
void App_onAppPostDraw(AppDelegate& cb) noexcept { cb.onAppPostDraw(); }
void App_onAppWindowResized(AppDelegate& cb, const WindowSize& size) noexcept {
cb.onAppWindowResized(size);
}
void App_onAppWindowMoved(AppDelegate& cb, std::int32_t x, std::int32_t y) noexcept {
cb.onAppWindowMoved(x, y);
}
2022-02-01 00:06:54 +00:00
void App_onAppExiting(AppDelegate& cb) noexcept { cb.onAppExiting(); }
2022-02-07 10:45:56 +00:00
// Input
void App_onCharKeyDown(AppDelegate& cb, std::uint8_t code, bool is_repeat) noexcept {
cb.onCharKeyDown(code, is_repeat);
}
void App_onCharKeyUp(AppDelegate& cb, std::uint8_t code) noexcept {
cb.onCharKeyUp(code);
}
void App_onSpecialKeyDown(AppDelegate& cb, const SpecialKey& key, bool is_repeat) {
cb.onSpecialKeyDown(key, is_repeat);
}
void App_onSpecialKeyUp(AppDelegate& cb, const SpecialKey& key) {
cb.onSpecialKeyUp(key);
}
2022-02-01 00:06:54 +00:00
} // namespace aurora