Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl/gllib.cc')
-rw-r--r--src/gl/gllib.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gl/gllib.cc b/src/gl/gllib.cc
index 3d3e26c..b8ca232 100644
--- a/src/gl/gllib.cc
+++ b/src/gl/gllib.cc
@@ -17,9 +17,23 @@ using math::Color;
namespace gl
{
+std::string renderer;
+std::string version;
+std::string extensions;
+std::string vendor;
+
void init()
{
con_debug << "Initializing gl..." << std::endl;
+
+ renderer = std::string ((char *)glGetString(GL_RENDERER));
+ vendor = std::string ((char *)glGetString(GL_VENDOR));
+ version = std::string ((char *)glGetString(GL_VERSION));
+ extensions = std::string ((char *)glGetString(GL_EXTENSIONS));
+
+ con_print << "Renderer: " << renderer << std::endl;
+ con_print << "Vendor: " << vendor << std::endl;
+ con_print << "Version: " << version << std::endl;
}
void shutdown()