arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

drawableGLI.h

Go to the documentation of this file.
00001 //////////////////////////////////////////////////////////////////////
00002 // 6/6/02       Aaron Lefohn    Scientific Computing and Imagint Institute
00003 // School of Computing          University of Utah
00004 //////////////////////////////////////////////////////////////////////
00005 
00006 
00007 #ifndef RENDER_PRIM__H
00008 #define RENDER_PRIM__H
00009 
00010 #if _MSC_VER > 1000
00011 #pragma once
00012 #endif // _MSC_VER > 1000
00013 
00014 #include "../core/gliftObject.h"
00015 #include "../util/dispList.h"
00016 #include "../util/compilable.h"
00017 
00018 namespace glift {
00019 
00020    /// Abstract base class for anything that can be drawn.
00021 class _export_ DrawableGLI : 
00022    public Compilable,
00023    public GliftObject
00024 {
00025 public:
00026    DrawableGLI();
00027    virtual ~DrawableGLI();
00028 
00029    void draw();
00030    void compile();
00031 
00032 protected:
00033    virtual void drawDef() = 0; /// Redefine this for specific draw functions
00034    virtual bool isCompiled() const {return m_drawList.isCompiled(); }
00035 
00036 private:
00037    DispList     m_drawList;
00038 };
00039 
00040 }
00041 
00042 #endif /// !defined(RENDER_PRIM__H)

Send questions, comments, and bug reports to:
jmk