Add support for SDL2

This commit is contained in:
Anonymous Maarten
2018-08-08 19:55:45 +02:00
parent 75dbb7e67e
commit 86571b650b
8 changed files with 511 additions and 16 deletions
+9
View File
@@ -1,15 +1,24 @@
#ifdef RW_GL3
#include <GL/glew.h>
#ifdef LIBRW_SDL2
#include <SDL.h>
#else
#include <GLFW/glfw3.h>
#endif
#endif
namespace rw {
#ifdef RW_GL3
struct EngineStartParams
{
#ifdef LIBRW_SDL2
SDL_Window **window;
#else
GLFWwindow **window;
#endif
int width, height;
bool32 fullscreen;
const char *windowtitle;
};
#endif