More Pimpl work
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m32s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m32s
This commit is contained in:
@@ -13,12 +13,35 @@
|
||||
#include <format>
|
||||
#include <queue>
|
||||
|
||||
#include <experimental/propagate_const>
|
||||
|
||||
|
||||
namespace ReWindow {
|
||||
class RWindowImpl;
|
||||
class RWindow;
|
||||
}
|
||||
|
||||
class platform;
|
||||
|
||||
class ReWindow::RWindowImpl {
|
||||
private:
|
||||
// Class for platform specific "global" variables, information, functionality, etc
|
||||
// It is private as it should not be accessed outside the Impl. It has also
|
||||
// purposefully been left undefined, so implementors can define it as they see fit.
|
||||
// Make sure to do proper cleanup of the class and pointer if utilized. It should
|
||||
// be handled with care.
|
||||
//
|
||||
// Example for initialization:
|
||||
// RWindowImpl::RWindowImpl(ARGS) : pPlatform( new Platform ) { XYZ }
|
||||
//
|
||||
// Example for destruction:
|
||||
// RWindowImpl::~RWindowImpl() {
|
||||
// if (pPlatform) { delete pPlatform; };
|
||||
// }
|
||||
//
|
||||
// - Maxine
|
||||
class Platform;
|
||||
Platform* pPlatform = nullptr;
|
||||
protected:
|
||||
int width = 1280;
|
||||
int height = 720;
|
||||
@@ -91,7 +114,8 @@ public:
|
||||
int wWidth = 640, int wHeight = 480,
|
||||
bool wFullscreen = false,
|
||||
bool wResizable = true,
|
||||
bool wVsync = false);
|
||||
bool wVsync = false) :
|
||||
RWindowImpl(wTitle, wWidth, wHeight, wFullscreen, wResizable, wVsync) {};
|
||||
~RWindow();
|
||||
public:
|
||||
// Platform dependant
|
||||
|
Reference in New Issue
Block a user