Merge branch 'fullscreen-api-nonrecreate' into dev
This commit is contained in:
commit
3a7f91cb07
7 changed files with 136 additions and 20 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "DisplayMode.h"
|
||||
#include "DisplayDescription.h"
|
||||
#include <Spectre/Math/Vector2.h>
|
||||
#include <Spectre/Display/GLContext.h>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
|
@ -71,6 +72,10 @@ protected :
|
|||
protected :
|
||||
enum Mode m_fmode;
|
||||
|
||||
// Cache window position when entering fullscreen
|
||||
// So it can be restored when returning to window mode.
|
||||
Vector2u m_cachePos;
|
||||
|
||||
DisplayDescription m_description;
|
||||
DisplayDescription m_cacheDesc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue