Fission FSN
Loading...
Searching...
No Matches
fsCDisplay.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCDisplay.h
4*
5* Purpose: bgfx implementation of fsIDisplay. Owns the GLFW
6* window and the bgfx device.
7*
8*********************************************************************/
9
10#ifndef fsCDisplayhdr
11#define fsCDisplayhdr
12
13
14#include <memory>
16
17struct fsDisplayInfo;
18struct GLFWwindow;
19
20class fsCDisplay : public fsIDisplay
21{
22 friend class fsIDisplay;
23
24public:
25
26 // For the game main loop - true once the user has requested the
27 // window close (bgfx games poll this instead of raylib's
28 // WindowShouldClose()).
29 static fsBool shouldCloseGet();
30
31protected:
32
34 fsPoint fixedDisplaySizeGet() const override;
36 fsBool desktopScreenModeSetDo(const fsCDisplayMode* pDisplayMode, fsBool pFullScreen) override;
37
39 virtual ~fsCDisplay();
40
41private:
42
43 void buffersSwap();
44
45 fsStr nameGet();
46
47 void windowCreate();
48 void bgfxInitialise();
49 void openGLViewCreate(const fsCDisplayMode* pDisplayMode, fsBool pFullScreen);
50
51 GLFWwindow* mWindow = nullptr;
52
53};
54
55#endif
Definition fsCDisplay.h:31
static fsBool shouldCloseGet()
Definition fsCDisplay.cpp:40
fsBool displayTypeIsDesktopGet() const override
fsBool desktopScreenModeSetDo(const fsCDisplayMode *pDisplayMode, fsBool pFullScreen) override
friend class fsIDisplay
Definition fsCDisplay.h:32
void desktopScreenModesEnumerateDo() override
virtual ~fsCDisplay()
fsPoint fixedDisplaySizeGet() const override
Definition fsCDisplayMode.h:20
Definition fsIDisplay.h:31
const fsStr & nameGet() const
Definition fsINode.cpp:430
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26
Definition fsPoint.h:17