Tidying up OpenGLWidget.
This commit is contained in:
parent
fbb7ff4728
commit
2ec29e33b7
@ -21,18 +21,11 @@ misrepresented as being the original software.
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef __BasicExample_OpenGLWidget_H__
|
#ifndef __OpenGLWidget_H_A72D4D2F8E__ // Random junk as 'OpenGLWidget seems like it could be a common name.
|
||||||
#define __BasicExample_OpenGLWidget_H__
|
#define __OpenGLWidget_H_A72D4D2F8E__
|
||||||
|
|
||||||
#include "PolyVox/Mesh.h"
|
|
||||||
|
|
||||||
#include <QOpenGLFunctions_3_1>
|
|
||||||
|
|
||||||
#include <QElapsedTimer>
|
#include <QElapsedTimer>
|
||||||
#include <QGLWidget>
|
#include <QGLWidget>
|
||||||
#include <QGLShaderProgram>
|
|
||||||
#include <QOpenGLVertexArrayObject>
|
|
||||||
#include <QOpenGLBuffer>
|
|
||||||
|
|
||||||
// This is a very basic class for getting an OpenGL example up and running with Qt5. It simply displays
|
// This is a very basic class for getting an OpenGL example up and running with Qt5. It simply displays
|
||||||
// an OpenGL widget and implements an FPS-style camera as well as other very basic functionality. User
|
// an OpenGL widget and implements an FPS-style camera as well as other very basic functionality. User
|
||||||
@ -97,4 +90,4 @@ private:
|
|||||||
|
|
||||||
#include "OpenGLWidget.inl"
|
#include "OpenGLWidget.inl"
|
||||||
|
|
||||||
#endif //__BasicExample_OpenGLWidget_H__
|
#endif //__OpenGLWidget_H_A72D4D2F8E__
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
#include "OpenGLWidget.h"
|
#include "OpenGLWidget.h"
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QMatrix4x4>
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
using namespace PolyVox;
|
#include <iostream>
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Protected functions
|
// Protected functions
|
||||||
|
@ -26,6 +26,13 @@ distribution.
|
|||||||
|
|
||||||
#include "OpenGLWidget.h"
|
#include "OpenGLWidget.h"
|
||||||
|
|
||||||
|
#include "PolyVox/Mesh.h"
|
||||||
|
|
||||||
|
#include <QGLShaderProgram>
|
||||||
|
#include <QOpenGLBuffer>
|
||||||
|
#include <QOpenGLFunctions_3_1>
|
||||||
|
#include <QOpenGLVertexArrayObject>
|
||||||
|
|
||||||
// This structure holds all the data required
|
// This structure holds all the data required
|
||||||
// to render one of our meshes through OpenGL.
|
// to render one of our meshes through OpenGL.
|
||||||
struct OpenGLMeshData
|
struct OpenGLMeshData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user