refactored MainWindow and Engine, changed project structure

This commit is contained in:
2025-04-26 00:59:47 +05:00
parent bb00392e3a
commit d659dcde10
54 changed files with 1662 additions and 339 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include "../common/std.hpp"
#include "../common/UsefulException.hpp"
namespace ougge::gui {
#define SDLException() SDLException_(__FILE__, __func__, __LINE__)
class SDLException_ : public UsefulException_ {
public:
SDLException_(const std::string& _file, const std::string& _func, int line_n);
};
#define IMGException() IMGException_(__FILE__, __func__, __LINE__)
class IMGException_ : public UsefulException_ {
public:
IMGException_(const std::string& _file, const std::string& _func, int line_n);
};
#define SDL_TRY(EXPR) if(EXPR) throw ::ougge::gui::SDLException();
}