static int attrListDbl[] =
{
GLX_RGBA, GLX_DOUBLEBUFFER,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_ALPHA_SIZE, 4,
GLX_DEPTH_SIZE, 16,
None
};
int main( int argc, char ** argv )
{
Display * dpy = XOpenDisplay(0);
int scr = DefaultScreen(dpy);
XVisualInfo * vis = glXChooseVisual(dpy, scr, attrListDbl);
// QApplication a( argc, argv );
CFormVolumeViewer w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
static int attrListDbl[] =
{
GLX_RGBA, GLX_DOUBLEBUFFER,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_ALPHA_SIZE, 4,
GLX_DEPTH_SIZE, 16,
None
};
int main( int argc, char ** argv )
{
Display * dpy = XOpenDisplay(0);
int scr = DefaultScreen(dpy);
XVisualInfo * vis = glXChooseVisual(dpy, scr, attrListDbl);
// QApplication a( argc, argv );
QApplication a(dpy, argc, argv, (long unsigned int)vis);
CFormVolumeViewer w;
a.setMainWidget((QWidget *)&w);
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks