mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Removed ApplicationOverlay::resize()
This commit is contained in:
parent
6e92beeb1c
commit
56ff74dd56
3 changed files with 4 additions and 16 deletions
|
@ -723,7 +723,6 @@ void Application::resizeGL(int width, int height) {
|
|||
resetCamerasOnResizeGL(_myCamera, width, height);
|
||||
|
||||
glViewport(0, 0, width, height); // shouldn't this account for the menu???
|
||||
_applicationOverlay.resize();
|
||||
|
||||
updateProjectionMatrix();
|
||||
glLoadIdentity();
|
||||
|
|
|
@ -1189,20 +1189,12 @@ void ApplicationOverlay::renderTexturedHemisphere() {
|
|||
|
||||
}
|
||||
|
||||
void ApplicationOverlay::resize() {
|
||||
if (_framebufferObject != NULL) {
|
||||
delete _framebufferObject;
|
||||
_framebufferObject = NULL;
|
||||
}
|
||||
// _framebufferObject is recreated at the correct size the next time it is accessed via getFramebufferObject().
|
||||
}
|
||||
|
||||
QOpenGLFramebufferObject* ApplicationOverlay::getFramebufferObject() {
|
||||
QSize size = Application::getInstance()->getGLWidget()->size();
|
||||
if (!_framebufferObject || _framebufferObject->size() != size) {
|
||||
if (_framebufferObject){
|
||||
delete _framebufferObject;
|
||||
}
|
||||
|
||||
delete _framebufferObject;
|
||||
|
||||
_framebufferObject = new QOpenGLFramebufferObject(size);
|
||||
glBindTexture(GL_TEXTURE_2D, _framebufferObject->texture());
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
|
|
@ -32,11 +32,8 @@ public:
|
|||
void displayOverlayTexture3DTV(Camera& whichCamera, float aspectRatio, float fov);
|
||||
void computeOculusPickRay(float x, float y, glm::vec3& direction) const;
|
||||
void getClickLocation(int &x, int &y) const;
|
||||
<<<<<<< HEAD
|
||||
QPoint getOculusPalmClickLocation(const PalmData *palm) const;
|
||||
=======
|
||||
void resize();
|
||||
>>>>>>> af6704a83cec1d69b3dc3e1145238919fcb82933
|
||||
|
||||
|
||||
// Getters
|
||||
QOpenGLFramebufferObject* getFramebufferObject();
|
||||
|
|
Loading…
Reference in a new issue