Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
C
12345678910111213141516171819202122232425262728293031323334#pragma once#include <SDL3/SDL.h>#include "Input/InputHandler.h"#include "AppLayers/AppLayer.h"#include <memory>#include "Commands/HistoryManager.h"#include "ManagementContext/PanelManagementContext.h"#include "Artwork.h"
class App {private: bool testMode = false, memCheck = false; uint64_t bootTime; SDL_Window* window; InputHandler* input; std::vector<std::shared_ptr<AppLayer>> layers; // these are app layers, not canvas/drawing layers, shared with the input system std::vector<std::shared_ptr<AppLayer>> projectsLayers; std::vector<std::shared_ptr<AppLayer>> editorLayers; void activateLayers(std::vector<std::shared_ptr<AppLayer>> layers); void deactivateLayers(std::vector<std::shared_ptr<AppLayer>> layers); bool areAllLayersActive(std::vector<std::shared_ptr<AppLayer>> layers); char* execName; PanelManagementContext* panelContext; void initLayers(); void initPanels();public: static Artwork* CurrentArtwork; static HistoryManager* History; static int Width, Height; App(int argc, char* argv[]); ~App(); void Run();};