WhirlyGlobe
1.1
A 3D interactive globe toolkit for ios
|
#include <Drawable.h>
Public Member Functions | |
Drawable () | |
Construct empty. | |
virtual GeoMbr | getGeoMbr () const =0 |
Return a geo MBR for sorting into cullables. | |
virtual unsigned int | getDrawPriority () const =0 |
We use this to sort drawables. | |
virtual bool | isOn (WhirlyGlobeView *view) const =0 |
We're allowed to turn drawables off completely. | |
virtual void | setupGL (float minZres) |
virtual void | teardownGL () |
Clean up any OpenGL objects you may have (e.g. VBOs). | |
virtual void | draw (GlobeScene *scene) const =0 |
Set up what you need in the way of context and draw. | |
virtual bool | hasAlpha () const =0 |
Return true if the drawable has alpha. These will be sorted last. |
The Drawable base class. Inherit from this and fill in the virtual methods. In general, use the BasicDrawable.
virtual void WhirlyGlobe::Drawable::setupGL | ( | float | minZres | ) | [inline, virtual] |
Do any OpenGL initialization you may want. For instance, set up VBOs. We pass in the minimum Z buffer resolution (for offsets).
Reimplemented in WhirlyGlobe::BasicDrawable.