//
// GLView.h
// NeHe Lesson 06
//
// Created by Jeff LaMarche on 12/13/08.
// Copyright Jeff LaMarche Consulting 2008. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "ConstantsAndMacros.h"
@class GLViewController;
@interface GLView : UIView
{
@private
// The pixel dimensions of the backbuffer
GLint backingWidth;
GLint backingHeight;
EAGLContext *context;
GLuint viewRenderbuffer, viewFramebuffer;
GLuint depthRenderbuffer;
NSTimer *animationTimer;
NSTimeInterval animationInterval;
GLViewController *controller;
BOOL controllerSetup;
}
@property(nonatomic, assign) GLViewController *controller;
@property NSTimeInterval animationInterval;
-(void)startAnimation;
-(void)stopAnimation;
-(void)drawView;
@end