Mercurial > xcodescriptingbridge
diff Classes/MySampleProjectViewController.h @ 0:5ec52341f221
Initial commit
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Fri, 29 Jul 2011 18:18:15 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Classes/MySampleProjectViewController.h Fri Jul 29 18:18:15 2011 -0700 @@ -0,0 +1,34 @@ +// +// MySampleProjectViewController.h +// MySampleProject +// +// Created by Eric Wing on 7/29/11. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#import <OpenGLES/EAGL.h> + +#import <OpenGLES/ES1/gl.h> +#import <OpenGLES/ES1/glext.h> +#import <OpenGLES/ES2/gl.h> +#import <OpenGLES/ES2/glext.h> + +@interface MySampleProjectViewController : UIViewController +{ + EAGLContext *context; + GLuint program; + + BOOL animating; + NSInteger animationFrameInterval; + CADisplayLink *displayLink; +} + +@property (readonly, nonatomic, getter=isAnimating) BOOL animating; +@property (nonatomic) NSInteger animationFrameInterval; + +- (void)startAnimation; +- (void)stopAnimation; + +@end