+ anti-aliasing for preview of 3d view
This commit is contained in:
parent
6958972a52
commit
bfce8c7991
|
@ -554,7 +554,14 @@ void View3DInventor::print(QPrinter* printer)
|
|||
|
||||
void View3DInventor::previewFromFramebuffer(const QRect& rect, QImage& img)
|
||||
{
|
||||
#if QT_VERSION >= 0x040600
|
||||
QGLFramebufferObjectFormat format;
|
||||
format.setSamples(8);
|
||||
format.setAttachment(QGLFramebufferObject::Depth);
|
||||
QGLFramebufferObject fbo(rect.width(), rect.height(), format);
|
||||
#else
|
||||
QGLFramebufferObject fbo(rect.width(), rect.height(), QGLFramebufferObject::Depth);
|
||||
#endif
|
||||
const QColor col = _viewer->backgroundColor();
|
||||
bool on = _viewer->hasGradientBackground();
|
||||
_viewer->setBackgroundColor(QColor(255,255,255));
|
||||
|
|
Loading…
Reference in New Issue
Block a user