WhirlyGlobe  1.1
A 3D interactive globe toolkit for ios
/Users/sjg/iPhone/WhirlyGlobe/WhirlyGlobeSrc/WhirlyGlobeLib/include/EAGLView.h
00001 /*
00002  *  EAGLView.h
00003  *  WhirlyGlobeLib
00004  *
00005  *  Created by Steve Gifford on 1/5/11.
00006  *  Copyright 2011 mousebird consulting
00007  *
00008  *  Licensed under the Apache License, Version 2.0 (the "License");
00009  *  you may not use this file except in compliance with the License.
00010  *  You may obtain a copy of the License at
00011  *  http://www.apache.org/licenses/LICENSE-2.0
00012  *
00013  *  Unless required by applicable law or agreed to in writing, software
00014  *  distributed under the License is distributed on an "AS IS" BASIS,
00015  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  *  See the License for the specific language governing permissions and
00017  *  limitations under the License.
00018  *
00019  */
00020 
00021 #import <UIKit/UIKit.h>
00022 
00023 #import "ESRenderer.h"
00024 
00030 @interface EAGLView : UIView 
00031 {
00032     // We're only expecting this to be set once
00033         id <ESRenderer> renderer;
00034 
00035     // This is in units of 60/frameRate.  Set it to 4 to get 15 frames/sec (at most)
00036         NSInteger frameInterval;
00037     BOOL animating;
00038     CADisplayLink *displayLink;
00039 }
00040 
00041 @property (nonatomic, retain) id<ESRenderer> renderer;
00042 @property (nonatomic) NSInteger frameInterval;
00043 @property (readonly, nonatomic, getter=isAnimating) BOOL animating;
00044 
00046 - (void) startAnimation;
00048 - (void) stopAnimation;
00049 
00051 - (void) drawView:(id)sender;
00052 
00053 @end