mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): add getter for device window
This commit is contained in:
parent
bfbd7e57ad
commit
acaa42019a
7 changed files with 17 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue