1 // 2 // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // Version.h: Encapsulation of a GL version. 8 9 #ifndef LIBANGLE_VERSION_H_ 10 #define LIBANGLE_VERSION_H_ 11 12 namespace gl 13 { 14 15 struct Version 16 { 17 constexpr Version(); 18 constexpr Version(unsigned int major, unsigned int minor); 19 20 unsigned int major; 21 unsigned int minor; 22 }; 23 24 bool operator==(const Version &a, const Version &b); 25 bool operator!=(const Version &a, const Version &b); 26 bool operator>=(const Version &a, const Version &b); 27 bool operator<=(const Version &a, const Version &b); 28 bool operator<(const Version &a, const Version &b); 29 bool operator>(const Version &a, const Version &b); 30 } // namespace gl 31 32 #include "Version.inc" 33 34 #endif // LIBANGLE_VERSION_H_ 35