WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
/Users/sjg/iPhone/WhirlyGlobe/WhirlyGlobeSrc/WhirlyGlobeLib/include/WhirlyGlobeView.h
00001 //
00002 //  WhirlyGlobeView.h
00003 //  WhirlyGlobeLib
00004 //
00005 //  Created by Stephen Gifford on 1/3/11.
00006 //  Copyright 2011 mousebird consulting. All rights reserved.
00007 //
00008 
00009 #import <UIKit/UIKit.h>
00010 
00011 #import "EAGLView.h"
00012 #import "GlobeScene.h"
00013 
00014 /* Whirly Globe View
00015         This manages the drawing of a Globe Scene.
00016         Just hand it the scene, tell it how often to draw and
00017     it'll do the rest.
00018  */
00019 @interface WhirlyGlobeView : EAGLView 
00020 {
00021 }
00022 
00023 // Caller is responsible for keeping it around
00024 @property (nonatomic, assign) WhirlyGlobe::GlobeScene *scene;
00025 
00026 
00027 // Create a Whirly Globe view like this
00028 // The frame rate units are 60/rate.  So pass in 2 to get 30 frames/sec (at most)
00029 + (WhirlyGlobeView *)whirlyGlobeWithScene:(WhirlyGlobe::GlobeScene *)scene frameInterval:(unsigned int)frameInterval;
00030 
00031 
00032 @end