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:
@ -25,11 +25,13 @@ PROJECT(DecodeOnGPUExample)
|
||||
SET(SRC_FILES
|
||||
main.cpp
|
||||
../common/OpenGLWidget.cpp
|
||||
../common/PolyVoxExample.cpp
|
||||
)
|
||||
|
||||
#Projects headers files
|
||||
SET(INC_FILES
|
||||
../common/OpenGLWidget.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 "PolyVox/CubicSurfaceExtractor.h"
|
||||
#include "PolyVox/MarchingCubesSurfaceExtractor.h"
|
||||
@ -66,11 +66,11 @@ void createSphereInVolume(PagedVolume<uint8_t>& volData, float fRadius)
|
||||
}
|
||||
}
|
||||
|
||||
class DecodeOnGPUExample : public OpenGLWidget
|
||||
class DecodeOnGPUExample : public PolyVoxExample
|
||||
{
|
||||
public:
|
||||
DecodeOnGPUExample(QWidget *parent)
|
||||
:OpenGLWidget(parent)
|
||||
:PolyVoxExample(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user