Ðеllo. I have the problem. I cannot get supported OpenGL version by Qt QtOpenGL module on the Windows XP. This must be 1.1 by WGL.
#include <QtGui>
#include <QIODevice>
void getOGLVersion();
int main(int argc, char** argv)
{
getOGLVersion();
//...
return app.exec();
}
void getOGLVersion()
{
out << hex << i;
f.close();
}
#include <QtGui>
#include <QIODevice>
void getOGLVersion();
int main(int argc, char** argv)
{
QApplication app(argc, argv);
getOGLVersion();
//...
return app.exec();
}
void getOGLVersion()
{
int i=(int)QGLFormat::openGLVersionFlags();
QFile f("info.txt");
f.open(QIODevice::WriteOnly);
QTextStream out(&f);
out << hex << i;
f.close();
}
To copy to clipboard, switch view to plain text mode
I must get constant table number in OpenGLVersionFlag, but this constant does not exist in table. I get: "3f" on my platform. I need help...
For example, I have for OpenSuse 11.2 and other old computer: "1f". This value does not exist also in table of enum OpenGLVersionFlag. Why? Where is the error or?
Bookmarks