0
|
1 //
|
|
2 // MySampleProjectViewController.h
|
|
3 // MySampleProject
|
|
4 //
|
|
5 // Created by Eric Wing on 7/29/11.
|
|
6 // Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
7 //
|
|
8
|
|
9 #import <UIKit/UIKit.h>
|
|
10
|
|
11 #import <OpenGLES/EAGL.h>
|
|
12
|
|
13 #import <OpenGLES/ES1/gl.h>
|
|
14 #import <OpenGLES/ES1/glext.h>
|
|
15 #import <OpenGLES/ES2/gl.h>
|
|
16 #import <OpenGLES/ES2/glext.h>
|
|
17
|
|
18 @interface MySampleProjectViewController : UIViewController
|
|
19 {
|
|
20 EAGLContext *context;
|
|
21 GLuint program;
|
|
22
|
|
23 BOOL animating;
|
|
24 NSInteger animationFrameInterval;
|
|
25 CADisplayLink *displayLink;
|
|
26 }
|
|
27
|
|
28 @property (readonly, nonatomic, getter=isAnimating) BOOL animating;
|
|
29 @property (nonatomic) NSInteger animationFrameInterval;
|
|
30
|
|
31 - (void)startAnimation;
|
|
32 - (void)stopAnimation;
|
|
33
|
|
34 @end
|