mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:30:37 +02:00
CR comments
This commit is contained in:
parent
8bad80324f
commit
f98305dd55
4 changed files with 11 additions and 24 deletions
|
@ -52,8 +52,8 @@ public:
|
|||
void getFocalLength(float focalLength) { _focalLength = focalLength; }
|
||||
|
||||
// getters for lens attributes
|
||||
const glm::mat4& getProjection() const { return _projection; };
|
||||
const glm::mat4& getView() const { return _view; };
|
||||
const glm::mat4& getProjection() const { return _projection; }
|
||||
const glm::mat4& getView() const { return _view; }
|
||||
float getWidth() const { return _width; }
|
||||
float getHeight() const { return _height; }
|
||||
float getFieldOfView() const { return _fieldOfView; }
|
||||
|
|
|
@ -10,21 +10,9 @@
|
|||
|
||||
#include <QOpenGLContext>
|
||||
#include <QOpenGLDebugLogger>
|
||||
#include <GLHelpers.h>
|
||||
|
||||
static QSurfaceFormat getDefaultFormat() {
|
||||
QSurfaceFormat format;
|
||||
// Qt Quick may need a depth and stencil buffer. Always make sure these are available.
|
||||
format.setDepthBufferSize(16);
|
||||
format.setStencilBufferSize(8);
|
||||
format.setVersion(4, 1);
|
||||
#ifdef DEBUG
|
||||
format.setOption(QSurfaceFormat::DebugContext);
|
||||
#endif
|
||||
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CompatibilityProfile);
|
||||
return format;
|
||||
}
|
||||
|
||||
GlWindow::GlWindow(QOpenGLContext * shareContext) : GlWindow(getDefaultFormat(), shareContext) {
|
||||
GlWindow::GlWindow(QOpenGLContext* shareContext) : GlWindow(getDefaultOpenGlSurfaceFormat(), shareContext) {
|
||||
}
|
||||
|
||||
GlWindow::GlWindow(const QSurfaceFormat& format, QOpenGLContext* shareContext) {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#define hifi_GlWindow_h
|
||||
|
||||
#include <QWindow>
|
||||
#include <QSurfaceFormat>
|
||||
|
||||
class QOpenGLContext;
|
||||
class QOpenGLDebugLogger;
|
||||
|
|
Loading…
Reference in a new issue