mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 01:55:21 +03:00
feat(gx): partially handle size wm event in d3d backend
This commit is contained in:
parent
298590f52c
commit
9a15edb6e4
@ -73,6 +73,7 @@ class CGxDevice {
|
||||
TSHashTable<CGxShader, HASHKEY_STRI> m_shaderList[GxShTargets_Last];
|
||||
int32_t m_context = 0;
|
||||
int32_t intF5C = 0;
|
||||
int32_t m_windowVisible = 0;
|
||||
int32_t intF64 = 0;
|
||||
CBoundingBox m_viewport;
|
||||
C44Matrix m_projection;
|
||||
|
@ -408,7 +408,24 @@ int32_t CGxDeviceD3d::DeviceSetFormat(const CGxFormat& format) {
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2) {
|
||||
// TODO
|
||||
switch (wm) {
|
||||
case GxWM_Size: {
|
||||
if (param2 == 1 || param2 == 2) {
|
||||
this->m_windowVisible = 0;
|
||||
} else {
|
||||
this->m_windowVisible = 1;
|
||||
|
||||
auto& windowRect = *reinterpret_cast<CRect*>(param1);
|
||||
this->DeviceSetDefWindow(windowRect);
|
||||
|
||||
if (this->m_d3dDevice && this->m_context) {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t indexed) {
|
||||
|
Loading…
Reference in New Issue
Block a user