GLW
Computer Graphics Structures library
Utils.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef GLW_UTILS_H
7 #define GLW_UTILS_H
8 #include <string>
9 #include <utility>
10 #include <GLW/API.h>
11 #include <Utils/Version.h>
12 
13 namespace glw
14 {
15 
17  GLW_API bool IsOpenGLInitialized();
18 
20  GLW_API std::string GetError();
21 
22  // Returns GL_VENDOR as std::string.
23  GLW_API std::string GetOpenGlVendor();
24 
25  // Returns GL_RENDERER as std::string.
26  GLW_API std::string GetOpenGlRenderer();
27 
28  // Returns GL_VERSION as std::string.
29  GLW_API std::string GetOpenGlVersion();
30 
32  GLW_API utils::Version GetCurrentOpenGlVersion();
33 
34 }
35 
36 #endif /* !GLW_UTILS_H */
OpenGL wrapper library namespace. Provides simplified interface for using OpenGL features.
Definition: API.h:17
GLW_API utils::Version GetCurrentOpenGlVersion()
Get OpenGL version actually active on system.
GLW_API bool IsOpenGLInitialized()
Returns true when OpenGL was initialized.
GLW_API std::string GetError()
Returns all errors generated by OpenGL since last time this function was called.