summaryrefslogtreecommitdiffstats
path: root/src/sq_glinfo.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sq_glinfo.ui.h')
-rw-r--r--src/sq_glinfo.ui.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/sq_glinfo.ui.h b/src/sq_glinfo.ui.h
new file mode 100644
index 0000000..878eeea
--- /dev/null
+++ b/src/sq_glinfo.ui.h
@@ -0,0 +1,38 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you want to add, delete, or rename functions or slots, use
+** TQt Designer to update this file, preserving your code.
+**
+** You should not define a constructor or destructor in this file.
+** Instead, write your code in functions called init() and destroy().
+** These will automatically be called by the form's constructor and
+** destructor.
+*****************************************************************************/
+
+void SQ_GLInfo::init()
+{
+ listGL->setSorting(-1);
+
+ TQListViewItem *item;
+ TQMap<TQString, GLenum> v;
+
+ v.insert("GL_VENDOR", GL_VENDOR);
+ v.insert("GL_RENDERER", GL_RENDERER);
+ v.insert("GL_VERSION", GL_VERSION);
+
+ for(TQMap<TQString, GLenum>::ConstIterator it = v.constBegin(); it != v.constEnd(); ++it)
+ {
+ item = listGL->findItem(it.key().latin1(), 0);
+
+ if(item)
+ {
+ const GLubyte *b = glGetString(it.data());
+
+ if(b)
+ {
+ item->setText(1, (const char*)b);
+ }
+ }
+ }
+}