cloth2
diff src/opengl.h @ 0:ef0c22554406
cloth sim test, initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 11 Jan 2016 16:51:16 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/opengl.h Mon Jan 11 16:51:16 2016 +0200 1.3 @@ -0,0 +1,52 @@ 1.4 +/* 1.5 +Stereoscopic tunnel for iOS. 1.6 +Copyright (C) 2011-2015 John Tsiombikas <nuclear@member.fsf.org> 1.7 + 1.8 +This program is free software: you can redistribute it and/or modify 1.9 +it under the terms of the GNU General Public License as published by 1.10 +the Free Software Foundation, either version 3 of the License, or 1.11 +(at your option) any later version. 1.12 + 1.13 +This program is distributed in the hope that it will be useful, 1.14 +but WITHOUT ANY WARRANTY; without even the implied warranty of 1.15 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.16 +GNU General Public License for more details. 1.17 + 1.18 +You should have received a copy of the GNU General Public License 1.19 +along with this program. If not, see <http://www.gnu.org/licenses/>. 1.20 +*/ 1.21 + 1.22 + 1.23 +#ifndef OPENGL_H_ 1.24 +#define OPENGL_H_ 1.25 + 1.26 +#ifdef HAVE_CONFIG_H_ 1.27 +#include "config.h" 1.28 +#endif 1.29 + 1.30 +#if defined(IPHONE) || defined(__IPHONE__) 1.31 +#include <OpenGLES/ES2/gl.h> 1.32 + 1.33 +#define glClearDepth glClearDepthf 1.34 +#define GLDEF 1.35 +#include "sanegl.h" 1.36 + 1.37 +#elif defined(ANDROID) 1.38 +#include <GLES2/gl2.h> 1.39 +#include <GLES2/gl2ext.h> 1.40 +#define GLDEF 1.41 +#include "sanegl.h" 1.42 + 1.43 +#else 1.44 + 1.45 +#include <GL/glew.h> 1.46 + 1.47 +#ifdef __APPLE__ 1.48 +#include <GLUT/glut.h> 1.49 +#else 1.50 +#include <GL/glut.h> 1.51 +#endif /* __APPLE__ */ 1.52 + 1.53 +#endif /* IPHONE */ 1.54 + 1.55 +#endif /* OPENGL_H_ */