#pragma once #include //so we don't have conflicts #include #include #include "input.h" #include namespace pika { struct WindowState { int w = 0; int h = 0; bool hasFocus = 0; }; //this is not intended to have multiple instances in the program struct PikaWindow { pika::PikaContext context = {}; //this is made to be passed to the user code //on live code editing this will be recorded every frame Input input = {}; WindowState windowState = {}; //this doesn't return error codes because it will do the asserts for you void create(); void saveWindowPositions(); bool shouldClose(); void update(); std::chrono::steady_clock::time_point timer = {}; }; }