#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>

@class QnDMaze_iPhoneAppDelegate;

@interface EAGLView : UIView {
	IBOutlet QnDMaze_iPhoneAppDelegate * appDelegate;
	
	@private
	GLint backingWidth;
	GLint backingHeight;
	
	EAGLContext * context;
	
	GLuint viewRenderbuffer;
	GLuint viewFramebuffer;
	
	GLuint depthRenderbuffer;
	
	NSTimer * animationTimer;
	NSTimeInterval animationInterval;
}

@property NSTimeInterval animationInterval;

- (void) startAnimation;
- (void) stopAnimation;
- (void) drawView;

@end
