#ifndef ROOT_TGLDisplayListCache
#define ROOT_TGLDisplayListCache
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#include <map>
class TGLDrawable;
class TGLDrawFlags;
class TGLDisplayListCache
{
private:
typedef std::pair<const TGLDrawable *, const Short_t> CacheID_t;
typedef std::map<CacheID_t,UInt_t> CacheDLMap_t;
UInt_t fSize;
Bool_t fInit;
Bool_t fEnabled;
Bool_t fCaptureOpen;
UInt_t fDLBase;
UInt_t fDLNextFree;
CacheDLMap_t fCacheDLMap;
Bool_t fCaptureFullReported;
static TGLDisplayListCache * fgInstance;
static const UInt_t fgInvalidDLName;
TGLDisplayListCache(Bool_t enable = true, UInt_t size = 10000);
virtual ~TGLDisplayListCache();
void Init();
CacheID_t MakeCacheID(const TGLDrawable & drawable, const TGLDrawFlags & flags) const;
UInt_t Find(CacheID_t cacheID) const;
public:
static TGLDisplayListCache & Instance();
void Enable(Bool_t enable) { fEnabled = enable; }
Bool_t IsEnabled() { return fEnabled; }
void Purge();
void Dump() const;
Bool_t Draw(const TGLDrawable & drawable, const TGLDrawFlags & flags) const;
Bool_t OpenCapture(const TGLDrawable & drawable, const TGLDrawFlags & flags);
Bool_t CloseCapture();
Bool_t CaptureIsOpen() { return fCaptureOpen; }
void Purge(const TGLDrawable & drawable);
void Purge(const TGLDrawable & drawable, const TGLDrawFlags & flags);
ClassDef(TGLDisplayListCache,0)
};
#endif // ROOT_TGLDisplayListCache
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.