1
0
Fork 0

Merge branch 'fullscreen-api-nonrecreate' into dev

This commit is contained in:
Henrik Hautakoski 2022-09-13 20:39:02 +02:00
commit 3a7f91cb07
7 changed files with 136 additions and 20 deletions

View file

@ -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;