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

isGlContextData.H

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

Generated on Thu Jul 8 15:19:28 2004 for inspace by doxygen 1.3.4