istereo2
diff src/opengl.h @ 23:7d795dade0bc
first pass at android port... compiles!
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 03 Oct 2015 06:10:30 +0300 |
parents | 3bccfc7d10fe |
children |
line diff
1.1 --- a/src/opengl.h Fri Oct 02 07:10:19 2015 +0300 1.2 +++ b/src/opengl.h Sat Oct 03 06:10:30 2015 +0300 1.3 @@ -1,6 +1,6 @@ 1.4 /* 1.5 Stereoscopic tunnel for iOS. 1.6 -Copyright (C) 2011 John Tsiombikas <nuclear@member.fsf.org> 1.7 +Copyright (C) 2011-2015 John Tsiombikas <nuclear@member.fsf.org> 1.8 1.9 This program is free software: you can redistribute it and/or modify 1.10 it under the terms of the GNU General Public License as published by 1.11 @@ -28,6 +28,13 @@ 1.12 #define glClearDepth glClearDepthf 1.13 #define GLDEF 1.14 #include "sanegl.h" 1.15 + 1.16 +#elif defined(ANDROID) 1.17 +#include <GLES2/gl2.h> 1.18 +#include <GLES2/gl2ext.h> 1.19 +#define GLDEF 1.20 +#include "sanegl.h" 1.21 + 1.22 #else 1.23 1.24 #include <GL/glew.h>