You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
15 years ago
|
/****************************************************************************
|
||
|
** ui.h extension file, included from the uic-generated form implementation.
|
||
|
**
|
||
|
** If you want to add, delete, or rename functions or slots, use
|
||
|
** Qt 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);
|
||
|
|
||
|
QListViewItem *item;
|
||
|
QMap<QString, GLenum> v;
|
||
|
|
||
|
v.insert("GL_VENDOR", GL_VENDOR);
|
||
|
v.insert("GL_RENDERER", GL_RENDERER);
|
||
|
v.insert("GL_VERSION", GL_VERSION);
|
||
|
|
||
|
for(QMap<QString, 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);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|