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:
@ -26,12 +26,14 @@ SET(SRC_FILES
|
||||
main.cpp
|
||||
../common/OpenGLWidget.cpp
|
||||
Perlin.cpp
|
||||
../common/PolyVoxExample.cpp
|
||||
)
|
||||
|
||||
#Projects headers files
|
||||
SET(INC_FILES
|
||||
../common/OpenGLWidget.h
|
||||
Perlin.h
|
||||
../common/PolyVoxExample.h
|
||||
)
|
||||
|
||||
#"Sources" and "Headers" are the group names in Visual Studio.
|
||||
|
@ -21,7 +21,7 @@ freely, subject to the following restrictions:
|
||||
distribution.
|
||||
*******************************************************************************/
|
||||
|
||||
#include "OpenGLWidget.h"
|
||||
#include "PolyVoxExample.h"
|
||||
#include "Perlin.h"
|
||||
|
||||
#include "PolyVox/MaterialDensityPair.h"
|
||||
@ -139,11 +139,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class PagingExample : public OpenGLWidget
|
||||
class PagingExample : public PolyVoxExample
|
||||
{
|
||||
public:
|
||||
PagingExample(QWidget *parent)
|
||||
:OpenGLWidget(parent)
|
||||
:PolyVoxExample(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user