-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting of default fbo id #3
Open
rooswouter
wants to merge
42
commits into
mathieu:master
Choose a base branch
from
openscenegraph:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
… 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)`
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