Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

isGlContextData.H

Go to the documentation of this file.
00001 
00012 #ifndef ISGLCONTEXTDATA_H
00013 #define ISGLCONTEXTDATA_H
00014 
00015 
00016 #ifdef USE_VRJUG
00017 
00018 // USING VRJUGGLER TO HANDLE MULTIPLE GL CONTEXTS
00019 #include <Kernel/GL/vjGlContextData.h>
00020 typedef vjGlContextData isGlContextData;
00021 
00022 #else
00023 
00024 // NOT USING VRJUGGLER
00025 template<class ContextDataType = int>
00026 class isGlContextData
00027 {
00028 public:
00029   isGlContextData() { _contextData = new ContextDataType(); }
00030   
00031   //: Returns reference to user data for the current context
00032   ContextDataType& operator*()  { return *_contextData; }
00033   
00034   //: Returns reference to user data for the current context
00035   ContextDataType* operator->() { return _contextData; }
00036   
00037   //std::vector<ContextDataType*>* getDataVector() {}
00038   
00039 private:
00040    ContextDataType* _contextData;
00041 };
00042 
00043 
00044 
00045 #endif // NOT USING VRJUG
00046 
00047 
00048 #endif

Generated on Mon Sep 15 16:27:56 2003 for inspace by doxygen1.2.18