There is a possibility to gather depth buffer possible values so that I know, prior calling QGLFormat::setDepthBufferSize, if the system supports 24 or 32bit depth buffer size?
There is a possibility to gather depth buffer possible values so that I know, prior calling QGLFormat::setDepthBufferSize, if the system supports 24 or 32bit depth buffer size?
Maybe using QDesktopWidget::depth() will help?
Qt Code:
int depth = qApp->desktop()->depth();To copy to clipboard, switch view to plain text mode
But it will return the current depth really, not all supported.
Oleg Shparber
papillon (28th November 2011)
Thank you very much Oleg. It doesn't really matter if I can't get all the depth buffer sizes supported; setting the Qt application to use the actual desktop depth is OK!
Bookmarks