![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#import <SphericalEarthLayer.h>
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 | |
TextureGroup * | texGroup |
WhirlyGlobe::GlobeScene * | scene |
unsigned int | xDim |
unsigned int | yDim |
unsigned int | chunkX |
unsigned int | chunkY |
bool | savingToCache |
NSString * | cacheName |
WhirlyGlobe::RenderCacheWriter * | cacheWriter |
Properties | |
float | fade |
If set, the time to fade in the globe. |
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.
- (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