00001 #ifndef SIMGEAR_GLPREDICATE_HXX 00002 #define SIMGEAR_GLPREDICATE_HXX 1 00003 00004 #include <vector> 00005 #include <string> 00006 00007 namespace simgear 00008 { 00009 00010 struct GLPredicate 00011 { 00012 GLPredicate() : majorVersion(0),minorVersion(0) {} 00013 GLPredicate(int majorVersion_, int minorVersion_) : 00014 majorVersion(majorVersion_), minorVersion(minorVersion_) 00015 { 00016 } 00019 bool operator ()(unsigned int contextID); 00020 int majorVersion; 00021 int minorVersion; 00022 std::vector<const std::string *> extensions; 00023 }; 00024 } 00025 #endif