From e55d61fcaf314cf6f9582e6ac5ae7f1a757887d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 2 Feb 2008 14:13:45 +0000 Subject: to be removed --- src/gl/gllib.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gl/gllib.cc') 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() -- cgit v1.2.3