Merge pull request #28 from ShFil119/master

Fix sdl and linux build
This commit is contained in:
aap
2020-04-25 00:45:51 +02:00
committed by GitHub
10 changed files with 18 additions and 13 deletions

View File

@@ -25,13 +25,14 @@
namespace rw {
namespace gl3 {
#ifndef LIBRW_SDL2
struct DisplayMode
{
GLFWvidmode mode;
int32 depth;
uint32 flags;
};
#endif
struct GlGlobals
{
@@ -48,13 +49,13 @@ struct GlGlobals
DisplayMode *modes;
int numModes;
int currentMode;
GLFWwindow **pWindow;
#endif
int presentWidth, presentHeight;
// for opening the window
int winWidth, winHeight;
const char *winTitle;
GLFWwindow **pWindow;
} glGlobals;
struct UniformState

View File

@@ -14,6 +14,7 @@ struct EngineOpenParams
{
#ifdef LIBRW_SDL2
SDL_Window **window;
bool32 fullscreen;
#else
GLFWwindow **window;
#endif