istereo

view src/EAGLView.h @ 35:23e5d274b2a2

added options panel, also added the xib files to the repository as they're needed
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Sep 2011 10:03:42 +0300
parents 1bb950d0976b
children ff055bff6a15
line source
1 #import <UIKit/UIKit.h>
2 #import <QuartzCore/QuartzCore.h>
4 #import "ESRenderer.h"
7 void show_options(void);
8 void hide_options(void);
11 // This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
12 // The view content is basically an EAGL surface you render your OpenGL scene into.
13 // Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
14 @interface EAGLView : UIView
15 {
16 @private
17 id <ESRenderer> renderer;
19 BOOL animating;
20 BOOL displayLinkSupported;
21 NSInteger animationFrameInterval;
22 // Use of the CADisplayLink class is the preferred method for controlling your animation timing.
23 // CADisplayLink will link to the main display and fire every vsync when added to a given run-loop.
24 // The NSTimer class is used only as fallback when running on a pre 3.1 device where CADisplayLink
25 // isn't available.
26 id displayLink;
27 NSTimer *animationTimer;
28 }
30 @property (readonly, nonatomic, getter=isAnimating) BOOL animating;
31 @property (nonatomic) NSInteger animationFrameInterval;
33 - (void)startAnimation;
34 - (void)stopAnimation;
35 - (void)drawView:(id)sender;
37 @end