mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-02 22:57:59 +03:00
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <windows.h>
|
|
|
|
namespace glrage {
|
|
|
|
class Context {
|
|
public:
|
|
virtual void attach(HWND hwnd) = 0;
|
|
virtual void detach() = 0;
|
|
virtual LRESULT windowProc(
|
|
HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) = 0;
|
|
virtual bool isFullscreen() = 0;
|
|
virtual void setFullscreen(bool fullscreen) = 0;
|
|
virtual void setWindowSize(int32_t width, int32_t height) = 0;
|
|
virtual void setDisplaySize(int32_t width, int32_t height) = 0;
|
|
virtual int32_t getDisplayWidth() = 0;
|
|
virtual int32_t getDisplayHeight() = 0;
|
|
virtual int32_t getWindowWidth() = 0;
|
|
virtual int32_t getWindowHeight() = 0;
|
|
virtual int32_t getScreenWidth() = 0;
|
|
virtual int32_t getScreenHeight() = 0;
|
|
virtual void setupViewport() = 0;
|
|
virtual void swapBuffers() = 0;
|
|
virtual void setRendered() = 0;
|
|
virtual bool isRendered() = 0;
|
|
virtual HWND getHWnd() = 0;
|
|
virtual std::string getBasePath() = 0;
|
|
virtual void scheduleScreenshot(const std::string &path) = 0;
|
|
|
|
virtual ~Context() = default;
|
|
};
|
|
|
|
}
|