feat(gx): add getter for device window

This commit is contained in:
fallenoak 2023-03-19 23:48:52 -05:00 committed by GitHub
parent bfbd7e57ad
commit acaa42019a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 0 deletions

View file

@ -487,6 +487,10 @@ int32_t CGxDeviceD3d::DeviceSetFormat(const CGxFormat& format) {
}
}
void* CGxDeviceD3d::DeviceWindow() {
return this->m_hwnd;
}
void CGxDeviceD3d::DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2) {
switch (wm) {
case GxWM_Size: {

View file

@ -247,6 +247,7 @@ class CGxDeviceD3d : public CGxDevice {
virtual void IRsSendToHw(EGxRenderState which);
virtual int32_t DeviceCreate(int32_t (*windowProc)(void* window, uint32_t message, uintptr_t wparam, intptr_t lparam), const CGxFormat& format);
virtual int32_t DeviceSetFormat(const CGxFormat& format);
virtual void* DeviceWindow();
virtual void DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2);
virtual void CapsWindowSize(CRect& dst);
virtual void CapsWindowSizeInScreenCoords(CRect& dst);