1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-03 10:49:03 +00:00

more changes to make Rug work on Android

This commit is contained in:
Zeno Rogue
2018-02-03 19:19:27 +01:00
parent bd84b76c1b
commit 0a7c07fa7d
4 changed files with 95 additions and 27 deletions

View File

@@ -301,6 +301,7 @@ void gdpush(int t);
#define SDLK_KP_ENTER (123054)
#define SDLK_BACKSPACE (123055)
typedef int SDL_Event;
typedef unsigned int Uint32;
#endif
#if ISWEB
@@ -330,6 +331,8 @@ inline Uint8 *SDL_GetKeyState(void *v) { static Uint8 tab[1024]; return tab; }
#include <GLES/gl.h>
#include <GLES/glext.h>
#include <GLES2/gl2.h>
#include <GLES3/gl3.h>
#define GLES_ONLY
#else
#include <GL/gl.h>
#include <GL/glu.h>