This commit is contained in:
EmsiaetKadosh
2025-02-05 15:13:02 +08:00
parent edcc095979
commit a086558f2d
19 changed files with 388 additions and 56 deletions
+6 -1
View File
@@ -7,7 +7,10 @@
#include "Game.h"
#include "hbp.h"
void Renderer::initialize() noexcept { MainDC = GetDC(MainWindowHandle); }
void Renderer::initialize() noexcept {
MainDC = GetDC(MainWindowHandle);
assistDC = CreateCompatibleDC(MainDC);
}
void Renderer::resize(const int width, const int height) noexcept(false) {
windowWidth = width;
@@ -19,3 +22,5 @@ void Renderer::resize(const int width, const int height) noexcept(false) {
}
if (game.getWindow()) game.getWindow()->onResize();
}
inline Renderer renderer = Renderer();