jabyengine/examples/PoolBox/application/src/main.cpp

24 lines
543 B
C++

#include "FontWriter/font_writer.hpp"
#include "assets.hpp"
#include <PSX/GPU/gpu_primitives.hpp>
#include <PSX/GPU/gpu.hpp>
#include <stdio.h>
using namespace JabyEngine;
static void setup() {
Assets::load_for_main();
FontWriter::setup();
}
void main() {
setup();
while(true) {
const auto end_pos = FontWriter::write({0, 32}, "Cody is cute\n&\na \x1b[8;0;0mBAAAAABY!!!");
FontWriter::write(end_pos, "\x1b[0;7;7mJaby was\nhere c:");
GPU::swap_buffers_vsync(1);
FontWriter::render();
}
}