Started splitting example framework into to two classes. One will be general purpose (for use in Cubiquity, etc), and the other will have PolyVox specific stuff.
This commit is contained in:
@ -30,6 +30,7 @@ SET(SRC_FILES
|
||||
#OpenGLSupport.cpp
|
||||
#OpenGLVertexBufferObjectSupport.cpp
|
||||
../common/OpenGLWidget.cpp
|
||||
../common/PolyVoxExample.cpp
|
||||
Shapes.cpp
|
||||
)
|
||||
|
||||
@ -39,6 +40,7 @@ SET(INC_FILES
|
||||
#OpenGLSupport.h
|
||||
#OpenGLVertexBufferObjectSupport.h
|
||||
../common/OpenGLWidget.h
|
||||
../common/PolyVoxExample.h
|
||||
Shapes.h
|
||||
)
|
||||
|
||||
|
@ -31,7 +31,7 @@ freely, subject to the following restrictions:
|
||||
|
||||
#include "Shapes.h"
|
||||
|
||||
#include "OpenGLWidget.h"
|
||||
#include "PolyVoxExample.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h> // Standard Header For Most Programs
|
||||
@ -47,11 +47,11 @@ using namespace std;
|
||||
|
||||
const int32_t g_uVolumeSideLength = 128;
|
||||
|
||||
class OpenGLExample : public OpenGLWidget
|
||||
class OpenGLExample : public PolyVoxExample
|
||||
{
|
||||
public:
|
||||
OpenGLExample(QWidget *parent)
|
||||
:OpenGLWidget(parent)
|
||||
:PolyVoxExample(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user