View Single Post
Old 05-06-03, 10:32 AM   #1
axeljaeger
Registered User
 
Join Date: May 2003
Location: Frankfurt/Germany
Posts: 8
Send a message via ICQ to axeljaeger
Default I think I found a bug. Small sample includet (requires Qt)

Yesterday I played a bit around with the QGLWidget from the Qt Toolkit from Trolltech. This widget allows it to embed an opengl context into a GUI-Application. There is a funktion renderText to render some text into the widget. But this function does not work together with my nVidia-Card. I'm very sure that the problem is in the nvidia-code and not in Trolltech's, because the same programm is working on ATI hardware. Im using Mandrake Linux 9.1 together with the newest nVidia-drivers (that one with installer). I have a Geforce 2 MX 200 with 64 MB SDRAM. I use an Pentium II on a mainboard with Intel chipset.

Here's the source:

Code:
#include <qgl.h>
#include <qapplication.h>

class W : public QGLWidget
{
 public:
  W() : QGLWidget(0,0) {}
  void paintGL();

};

void W::paintGL()
{
 glClearColor(0.0f,0.0f,0.0f,1.0f);
 glClear(GL_COLOR_BUFFER_BIT);
  renderText(0,0, "Kashmere");
}

int main(int argc, char ** argv)
{
 QApplication app(argc, argv);
 W w;
 app.setMainWidget(&w);
 w.show();
 return app.exec();
}
Attached Files
File Type: txt xf86config-4.txt (2.7 KB, 235 views)

Last edited by axeljaeger; 05-06-03 at 10:51 AM.
axeljaeger is offline   Reply With Quote