summaryrefslogtreecommitdiff
path: root/tests/system-gl.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
commitcfc67f928fc86310614940f126d9f6c76d4e9ea7 (patch)
tree162be7579d3acd0eeb5b7b509ef9a0b428d6831f /tests/system-gl.cc
parentfe44758f5096be0e98c82d2cb0d54bdeffc4403a (diff)
parent974abf13049d5e73227418e3990af8a9bbf9db09 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'tests/system-gl.cc')
-rw-r--r--tests/system-gl.cc50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/system-gl.cc b/tests/system-gl.cc
deleted file mode 100644
index 2e3f3bc..0000000
--- a/tests/system-gl.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-
-/* OpenGL helper functions */
-
-#include <iostream>
-#include <sstream>
-#include <string>
-#include "system-gl.h"
-#include <boost/algorithm/string.hpp>
-
-using namespace std;
-using namespace boost;
-
-string glew_dump(bool dumpall)
-{
- stringstream out;
- out << "GLEW version: " << glewGetString(GLEW_VERSION) << endl
- << "GL Renderer: " << (const char *)glGetString(GL_RENDERER) << endl
- << "GL Vendor: " << (const char *)glGetString(GL_VENDOR) << endl
- << "OpenGL Version: " << (const char *)glGetString(GL_VERSION) << endl;
-
- out << "GL Extensions: " << endl;
- if (dumpall) {
- string extensions((const char *)glGetString(GL_EXTENSIONS));
- replace_all( extensions, " ", "\n " );
- out << " " << extensions << endl;
- }
-
- out << "GL_ARB_framebuffer_object: "
- << (glewIsSupported("GL_ARB_framebuffer_object") ? "yes" : "no")
- << endl
- << "GL_EXT_framebuffer_object: "
- << (glewIsSupported("GL_EXT_framebuffer_object") ? "yes" : "no")
- << endl
- << "GL_EXT_packed_depth_stencil: "
- << (glewIsSupported("GL_EXT_packed_depth_stencil") ? "yes" : "no")
- << endl;
-
- return out.str();
-};
-
-bool report_glerror(const char * function)
-{
- GLenum tGLErr = glGetError();
- if (tGLErr != GL_NO_ERROR) {
- cerr << "OpenGL error 0x" << hex << tGLErr << ": " << gluErrorString(tGLErr) << " after " << function << endl;
- return true;
- }
- return false;
-}
-
contact: Jan Huwald // Impressum