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

#include <RenderCache.h>

List of all members.

Public Member Functions

 RenderCacheReader (NSString *fileName)
bool getDrawablesAndTextures (std::vector< Texture * > &textures, std::vector< Drawable * > &drawables)
bool getDrawablesAndTexturesAddToScene (GlobeScene *scene, SimpleIDSet &texIDs, SimpleIDSet &drawIDs, float fade)

Protected Attributes

unsigned int numTextures
unsigned int numDrawables
std::string fileBase
std::string fileDir
TextureIDMap texIDMap
FILE * fp

Detailed Description

The Render Cache Reader reads render caches, logically enough. It reads textures first and then drawables. You can fetch the data as a couple of vectors or as callbacks, assuming you want to merge as you go.


Member Function Documentation

bool WhirlyGlobe::RenderCacheReader::getDrawablesAndTextures ( std::vector< Texture * > &  textures,
std::vector< Drawable * > &  drawables 
)

Read in the textures and drawables in the cache Caller responsible for deletion

bool WhirlyGlobe::RenderCacheReader::getDrawablesAndTexturesAddToScene ( GlobeScene scene,
SimpleIDSet &  texIDs,
SimpleIDSet &  drawIDs,
float  fade 
)

Read in the textures and drawables and add them to the scene as we go. Presumably the caller doesn't need to make any changes. Returns the lists of textures and drawables added


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