#include "../src/Bitmap.h" #include "../src/TextRenderer.h" #include /** * @author: Julian Hinxlage * @since: v0.0.0 * @brief: An image is loaded and used as a font. */ int main() { vkvm::initialize(0); vkvm::setLogLevel(vkvm::DEBUG); TextRenderer textRenderer = TextRenderer(); textRenderer.setLeftMargin(1); textRenderer.setBottomMargin(1); vkvm::registerEvent(vkvm::EventType::RenderText, [&textRenderer]() { std::string currentText = vkvm::getText(); vkvm::log(vkvm::DEBUG, currentText); textRenderer.update(currentText); vkvm::callEvent(vkvm::EventType::Redraw); }); vkvm::registerEvent(vkvm::EventType::UpdateControlRegisters, [&textRenderer]() { textRenderer.updateParameters(); }); while (true) { } return 0; }