Fix sdl and linux build

This commit is contained in:
Filip Gawin
2020-04-24 17:41:48 +02:00
parent 374f951d7c
commit e3227f5558
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