Removed osgShadow::ShadowVolume as it functionality isn't functional

This commit is contained in:
Robert Osfield
2018-04-03 11:35:31 +01:00
parent d0f891ca31
commit 3450b9fee8
9 changed files with 45 additions and 1734 deletions

View File

@@ -1,5 +1,3 @@
#include <osgShadow/ShadowVolume>
#include <iostream>
#include <string>
@@ -17,7 +15,7 @@ bool ShadowVolume_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
REGISTER_DOTOSGWRAPPER(ShadowVolume_Proxy)
(
new osgShadow::ShadowVolume,
0,
"ShadowVolume",
"Object ShadowTechnique ShadowVolume",
ShadowVolume_readLocalData,

View File

@@ -1,8 +1,44 @@
#include <osgShadow/ShadowVolume>
#include <osgShadow/ShadowTechnique>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
namespace osgShadow
{
class ShadowVolumeGeometry
{
public :
enum DrawMode
{
GEOMETRY,
STENCIL_TWO_PASS,
STENCIL_TWO_SIDED
};
};
class ShadowVolume : public osgShadow::ShadowTechnique
{
public:
ShadowVolume() {}
ShadowVolume(const ShadowVolume& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) {}
META_Object(osgShadow, ShadowVolume);
void setDrawMode(osgShadow::ShadowVolumeGeometry::DrawMode) {}
osgShadow::ShadowVolumeGeometry::DrawMode getDrawMode() const { return osgShadow::ShadowVolumeGeometry::GEOMETRY; }
void setDynamicShadowVolumes(bool) {}
bool getDynamicShadowVolumes() const { return false; }
virtual void resizeGLObjectBuffers(unsigned int maxSize) {}
virtual void releaseGLObjects(osg::State* = 0) const {}
};
}
REGISTER_OBJECT_WRAPPER( osgShadow_ShadowVolume,
new osgShadow::ShadowVolume,
osgShadow::ShadowVolume,