source: trunk/monsterz/ios/classes/MonsterzViewController.h @ 739

Last change on this file since 739 was 739, checked in by sam, 10 years ago

ios: clean up code.

File size: 869 bytes
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#import <UIKit/UIKit.h>
12
13#import <OpenGLES/EAGL.h>
14
15#import <OpenGLES/ES1/gl.h>
16#import <OpenGLES/ES1/glext.h>
17#import <OpenGLES/ES2/gl.h>
18#import <OpenGLES/ES2/glext.h>
19
20@interface MonsterzViewController : UIViewController
21{
22    EAGLContext *context;
23
24    BOOL animating;
25    NSInteger animationFrameInterval;
26    CADisplayLink *displayLink;
27}
28
29@property (readonly, nonatomic, getter=isAnimating) BOOL animating;
30@property (nonatomic) NSInteger animationFrameInterval;
31
32- (void)startAnimation;
33- (void)stopAnimation;
34
35@end
36
Note: See TracBrowser for help on using the repository browser.