Bezos2 is my latest version of the Bezos learning project that uses raw OpenGL and C++ with Lua.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#define _USE_MATH_DEFINES
|
|
|
|
|
#include <fmt/core.h>
|
|
|
|
|
#include "config.hpp"
|
|
|
|
|
#include "render.hpp"
|
|
|
|
|
#include "bezos.hpp"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
Deck deck = Bezos::load("lua/builder_test.lua");
|
|
|
|
|
Engine state{.deck=deck};
|
|
|
|
|
state.init();
|
|
|
|
|
|
|
|
|
|
while(state.active()) {
|
|
|
|
|
state.update();
|
|
|
|
|
state.render();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
state.quit();
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|