From ae9e0e6838e515afb42e4fe37165263e6c94aaa8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 21 Feb 2006 21:28:57 +0000 Subject: [PATCH] Added initial cut of ClusterCullingCallback .osg support. --- src/osgPlugins/osg/ClusterCullingCallback.cpp | 43 +++++++++++++++++++ src/osgPlugins/osg/GNUmakefile | 1 + 2 files changed, 44 insertions(+) create mode 100644 src/osgPlugins/osg/ClusterCullingCallback.cpp diff --git a/src/osgPlugins/osg/ClusterCullingCallback.cpp b/src/osgPlugins/osg/ClusterCullingCallback.cpp new file mode 100644 index 000000000..85eb56ee3 --- /dev/null +++ b/src/osgPlugins/osg/ClusterCullingCallback.cpp @@ -0,0 +1,43 @@ +#include + +#include + +#include +#include +#include + +using namespace osg; +using namespace osgDB; + +bool ClusterCullingCallback_readLocalData(osg::Object &obj, osgDB::Input &fr); +bool ClusterCullingCallback_writeLocalData(const osg::Object &obj, osgDB::Output &fw); // register the read and write functions with the osgDB::Registry. + +osgDB::RegisterDotOsgWrapperProxy ClusterCullingCallback_Proxy +( + new ClusterCullingCallback, + "ClusterCullingCallback", + "Object ClusterCullingCallback", + &ClusterCullingCallback_readLocalData, + &ClusterCullingCallback_writeLocalData +); + +bool ClusterCullingCallback_readLocalData(osg::Object &obj, osgDB::Input &fr) +{ + ClusterCullingCallback& nc = dynamic_cast(obj); + if (!(&nc)) return false; + + bool itrAdvanced = false; + + + return itrAdvanced; +} + +bool ClusterCullingCallback_writeLocalData(const osg::Object &obj, osgDB::Output &fw) +{ + const ClusterCullingCallback* nc = dynamic_cast(&obj); + if (!nc) return false; + + ClusterCullingCallback* nnc = (ClusterCullingCallback*) nc; + + return true; +} diff --git a/src/osgPlugins/osg/GNUmakefile b/src/osgPlugins/osg/GNUmakefile index 638eed437..a6dc51e9f 100644 --- a/src/osgPlugins/osg/GNUmakefile +++ b/src/osgPlugins/osg/GNUmakefile @@ -12,6 +12,7 @@ CXXFILES =\ ClearNode.cpp\ ClipNode.cpp\ ClipPlane.cpp\ + ClusterCullingCallback.cpp\ ColorMask.cpp\ ConvexPlanarOccluder.cpp\ CoordinateSystemNode.cpp\