projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.21.tar.gz
[xscreensaver]
/
OSX
/
XScreenSaverGLView.h
diff --git
a/OSX/XScreenSaverGLView.h
b/OSX/XScreenSaverGLView.h
index 1b9f270eb050a115ec7c8c7de8239f0ab53f497c..365cfba4e9758a0905ce8aa5359c4ea6551220c7 100644
(file)
--- a/
OSX/XScreenSaverGLView.h
+++ b/
OSX/XScreenSaverGLView.h
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 2006-20
09
Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2006-20
12
Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-16,11
+16,24
@@
*/
#import "XScreenSaverView.h"
*/
#import "XScreenSaverView.h"
-#import <AppKit/NSOpenGL.h>
+
+#ifdef USE_IPHONE
+# import <OpenGLES/EAGL.h>
+# import <OpenGLES/ES1/gl.h>
+# import <OpenGLES/ES1/glext.h>
+# import <QuartzCore/QuartzCore.h>
+# define NSOpenGLContext EAGLContext
+#else
+# import <AppKit/NSOpenGL.h>
+#endif
@interface XScreenSaverGLView : XScreenSaverView
{
NSOpenGLContext *ogl_ctx; // OpenGL rendering context
@interface XScreenSaverGLView : XScreenSaverView
{
NSOpenGLContext *ogl_ctx; // OpenGL rendering context
+
+# ifdef USE_IPHONE
+ GLuint gl_framebuffer, gl_renderbuffer, gl_depthbuffer;
+# endif /* USE_IPHONE */
}
@end
}
@end