Add support for SDL2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user