]> git.mxchange.org Git - simgear.git/blob - simgear/scene/material/GLPredicate.hxx
pass SGReaderWriterXMLOptions to effects
[simgear.git] / simgear / scene / material / GLPredicate.hxx
1 #ifndef SIMGEAR_GLPREDICATE_HXX
2 #define SIMGEAR_GLPREDICATE_HXX 1
3
4 #include <vector>
5 #include <string>
6
7 namespace simgear
8 {
9
10 struct GLPredicate
11 {
12     GLPredicate() : majorVersion(0),minorVersion(0) {}
13     GLPredicate(int majorVersion_, int minorVersion_) :
14         majorVersion(majorVersion_), minorVersion(minorVersion_)
15     {
16     }
17     /** Does OpenGL support the required version and extensions?
18      */
19     bool operator ()(unsigned int contextID);
20     int majorVersion;
21     int minorVersion;
22     std::vector<const std::string *> extensions;
23 };
24 }
25 #endif