From 237da037606bad97445562ef1f8863becb71a25c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 3 Apr 2025 00:28:54 +0100 Subject: Basically empty ResViewer application --- application/resviewer.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 application/resviewer.cpp (limited to 'application/resviewer.cpp') diff --git a/application/resviewer.cpp b/application/resviewer.cpp new file mode 100644 index 0000000..99e3425 --- /dev/null +++ b/application/resviewer.cpp @@ -0,0 +1,30 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +constexpr int DEFAULT_WIDTH = 240; +constexpr int DEFAULT_HEIGHT = 160; + +int +main(int argc, char ** argv) +{ + class ResViewer : GameState, MainApplication { + public: + void + run(std::span fileList) + { + windows.create(DEFAULT_WIDTH, DEFAULT_HEIGHT/*, "ILT - Resource Viewer", + SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL*/); + mainLoop(); + } + }; + + std::span files {argv, static_cast(argc)}; + + ResViewer {}.run(files.subspan(2)); +} -- cgit v1.2.3