Adapted the examples for iOS (WIP)

This commit is contained in:
Laurent Gomila 2013-08-26 09:17:53 +02:00 committed by Jonathan De Wachter
parent cefb4fcee0
commit 4e8e1629d1
6 changed files with 49 additions and 11 deletions

View file

@ -6,6 +6,18 @@
#include <SFML/OpenGL.hpp>
// Some platform-specific stuff
#ifdef SFML_OPENGL_ES
#define glClearDepth glClearDepthf
#define glFrustum glFrustumf
#define gluBuild2DMipmaps(target, internalFormat, width, height, format, type, pixels) \
glTexImage2D(target, 0, internalFormat, width, height, 0, format, type, pixels); \
glGenerateMipmapOES(GL_TEXTURE_2D);
#endif
////////////////////////////////////////////////////////////
/// Entry point of application
///