![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <RenderCache.h>
Public Member Functions | |
RenderCacheWriter (NSString *fileName) | |
std::string | addTexture (SimpleIdentity texId, UIImage *) |
bool | addDrawable (const Drawable *) |
void | setIgnoreTextures () |
Protected Attributes | |
std::string | fileBase |
unsigned int | numTextures |
unsigned int | numDrawables |
TextureIDMap | texIDMap |
FILE * | fp |
bool | ignoreTextures |
The Render Cache Writer helps consolidate drawables in to an on-disk render cache that can be loaded quickly on startup. It's used in conjuction with specific layers.
bool WhirlyGlobe::RenderCacheWriter::addDrawable | ( | const Drawable * | ) |
Add a drawable to the cache file Returns false on failure
std::string WhirlyGlobe::RenderCacheWriter::addTexture | ( | SimpleIdentity | texId, |
UIImage * | |||
) |
Textures are just written out to the cache area, not as part of the cache file We'll track the tex ID to name mapping for writing drawables as well. Returns an empty string on failure
void WhirlyGlobe::RenderCacheWriter::setIgnoreTextures | ( | ) |
Ignore any texture references They just get turned in to EmptyIdentity