diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-02 14:13:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-02 14:13:45 +0000 |
commit | e55d61fcaf314cf6f9582e6ac5ae7f1a757887d1 (patch) | |
tree | c6770b2a937d5db096049f0f8adec5687e02978e /src/gl/gllib.cc | |
parent | cdc5a69a108654ff378839e8cf93669de31ff9c5 (diff) |
to be removed
Diffstat (limited to 'src/gl/gllib.cc')
-rw-r--r-- | src/gl/gllib.cc | 14 |
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() |