WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
SphericalEarthLayer Class Reference

#import <SphericalEarthLayer.h>

Inheritance diagram for SphericalEarthLayer:
<WhirlyGlobeLayer>

List of all members.

Public Member Functions

(id) - initWithTexGroup:
(id) - initWithTexGroup:cacheName:
(void) - saveToCacheName:
 Call this right after init if you want to save the geometry out.
(void) - startWithThread:scene:
 Called in the layer thread.
(float) - smallestTesselation

Protected Attributes

TextureGrouptexGroup
WhirlyGlobe::GlobeScenescene
unsigned int xDim
unsigned int yDim
unsigned int chunkX
unsigned int chunkY
bool savingToCache
NSString * cacheName
WhirlyGlobe::RenderCacheWritercacheWriter

Properties

float fade
 If set, the time to fade in the globe.

Detailed Description

This is the earth modelled as a sphere. Yes, this probably needs to be an ellipse some day, but not yet. It's a data layer, so it starts off in the layer thread by creating the earth model itself. Once that's done, it doesn't do anything else.


Member Function Documentation

- (id) initWithTexGroup: (TextureGroup *)  texGroup

Create it like this. It needs a texture group to run. That provides the images and it will generate the geometry.

- (id) initWithTexGroup: (TextureGroup *)  texGroup
cacheName: (NSString *)  cacheName 

Create it like this. It needs a texture group to run. That provides the images and it will generate the geometry. If you provide a cache name, we'll try to load from there first

- (float) smallestTesselation

Ask the earth layer what the smallest tesselation size for overlaid geometry should be. This is intended to avoid Z fighting


The documentation for this class was generated from the following file: