WhirlyGlobe  1.1
A 3D interactive globe toolkit for ios
WhirlyGlobe::Drawable Class Reference

#include <Drawable.h>

Inheritance diagram for WhirlyGlobe::Drawable:
WhirlyGlobe::Identifiable WhirlyGlobe::BasicDrawable

List of all members.

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.

Detailed Description

The Drawable base class. Inherit from this and fill in the virtual methods. In general, use the BasicDrawable.


Member Function Documentation

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.


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