should prob put this on git sometime
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include <cstdio>
|
||||
#include <SDL.h>
|
||||
|
||||
#include "Lightkeeper.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", SDL_GetError(), nullptr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::filesystem::path exeDir = SDL_GetBasePath();
|
||||
|
||||
spdlog::set_level(spdlog::level::debug);
|
||||
|
||||
LightKeeper app;
|
||||
app.init({
|
||||
.windowSize = {800, 600},
|
||||
.renderSize = {800, 600},
|
||||
.appName = "Astro Engine",
|
||||
.windowTitle = "Lightkeeper",
|
||||
.exeDir = exeDir,
|
||||
});
|
||||
app.run();
|
||||
|
||||
SDL_Quit();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user