V2 working
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m54s
CI / Windows Release Package (push) Successful in 3m14s

This commit is contained in:
Aiden
2026-05-12 01:59:02 +10:00
parent 2531d871e8
commit e0ca548ef5
32 changed files with 3492 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#pragma once
#include <windows.h>
#include <string>
class HiddenGlWindow
{
public:
HiddenGlWindow() = default;
HiddenGlWindow(const HiddenGlWindow&) = delete;
HiddenGlWindow& operator=(const HiddenGlWindow&) = delete;
~HiddenGlWindow();
bool Create(unsigned width, unsigned height, std::string& error);
bool MakeCurrent() const;
void ClearCurrent() const;
void Destroy();
HDC DeviceContext() const { return mDc; }
HGLRC Context() const { return mGlrc; }
private:
static LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
HINSTANCE mInstance = nullptr;
HWND mWindow = nullptr;
HDC mDc = nullptr;
HGLRC mGlrc = nullptr;
ATOM mClassAtom = 0;
};