Adapted the examples for iOS (WIP)
This commit is contained in:
parent
cefb4fcee0
commit
4e8e1629d1
6 changed files with 49 additions and 11 deletions
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue