Setting of default fbo id#3
Open
rooswouter wants to merge 44 commits into
Open
Conversation
… before trying to configure it
Remove obsolete osg info
Support side-by-side installation of Qt4 and Qt5 builds
Use include/osgQt also for osgQt5
Sometimes, the window resized when _gw hasn't been created.
Fix bug when compiling the doc
fix the bug which _gw pointer is null.
If I hadn't call makeCurrent function before swapBuffers by using ThreadingModel::CullThreadPerCameraDrawThreadPerContext with Qt5.9, I will get this warning: qopenglcontext::swapbuffers() called without corresponding makecurrent().
This compiles but doesn't have an exmaple yet We use this in production for our software originale code is here https://github.com/mkrus/osgQt5Samples
fix bug: without corresponding makecurrent()
Modify FIND_PACKAGE Qt5 components
Added missing Camera::setDrawBuffer()/setReadBuffer()
Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
Compatible with the new and old versions of OSG
Feature/osgQOpenGL
* Removed definition of __gl_h_ to prevent the Gl.h include not defining standard Gl defines such as GLfloat when compiling on Windows systems (Visual Studio 2013 tested) * Removed setting of state settings specific to OpenGL 3 non fixed pipeline. * Added check for starting without any arguments to call constructor without arguments * Add setting of default fbo id to fix problem with render to texture in the QOpenGLWidget
"When implementing a new widget, it is almost always useful to reimplement sizeHint() to provide a reasonable default size for the widget and to set the correct size policy with setSizePolicy()." https://doc.qt.io/qt-5/qwidget.html#size-hints-and-size-policies Default value of QWidget::rect is 0,0,640,480. This SD aspect ratio agrees with OSG when widget is shown by itself. However, once widget is put into a layout it has to return a valid sizeHint in order to preserve this aspect ratio and size.
override sizeHint in osgQOpenGLWidget
Check the validation of `_mainwindow` when invoke `_mainwindow->setCentralWidget(this)`
The FATAL_ERROR option is accepted but ignored by CMake 2.6 and higher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added setting of default fbo id to solve problem with rendering to texture. See http://forum.osgearth.org/solved-black-screen-with-drape-mode-in-a-QOpenGLWidget-td7592420.html#a7592421