Removed osgShadow::ShadowVolume as it functionality isn't functional
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user