From 15773d920a81aa9418cfb98a8f062a730df603c0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 7 Nov 2002 08:48:30 +0000 Subject: [PATCH] Fix for build under Linux. --- src/osgPlugins/osg/Makefile | 4 +-- src/osgPlugins/osg/ShapeDrawable.cpp | 41 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 src/osgPlugins/osg/ShapeDrawable.cpp diff --git a/src/osgPlugins/osg/Makefile b/src/osgPlugins/osg/Makefile index fd4d8b6f8..fde6c1d6a 100644 --- a/src/osgPlugins/osg/Makefile +++ b/src/osgPlugins/osg/Makefile @@ -40,6 +40,7 @@ CXXFILES =\ Projection.cpp\ ReaderWriterOSG.cpp\ ShadeModel.cpp\ + ShapeDrawable.cpp\ StateSet.cpp\ Sequence.cpp\ Stencil.cpp\ @@ -56,8 +57,7 @@ CXXFILES =\ Transform.cpp\ -###LIBS += $(OSG_LIBS) $(OTHER_LIBS) -LIBS = -losg -lCstd +LIBS += $(OSG_LIBS) $(OTHER_LIBS) TARGET_BASENAME = osg include $(TOPDIR)/Make/cygwin_plugin_def diff --git a/src/osgPlugins/osg/ShapeDrawable.cpp b/src/osgPlugins/osg/ShapeDrawable.cpp new file mode 100644 index 000000000..a6f3eaaa3 --- /dev/null +++ b/src/osgPlugins/osg/ShapeDrawable.cpp @@ -0,0 +1,41 @@ +#include + +#include +#include +#include + +using namespace osg; +using namespace osgDB; + +// forward declare functions to use later. +bool ShapeDrawable_readLocalData(Object& obj, Input& fr); +bool ShapeDrawable_writeLocalData(const Object& obj, Output& fw); + +//register the read and write functions with the osgDB::Registry. +RegisterDotOsgWrapperProxy g_ShapeDrawableFuncProxy +( + osgNew osg::ShapeDrawable, + "ShapeDrawable", + "Object Drawable ShapeDrawable", + &ShapeDrawable_readLocalData, + &ShapeDrawable_writeLocalData, + DotOsgWrapper::READ_AND_WRITE +); + +bool ShapeDrawable_readLocalData(Object& obj, Input& fr) +{ + bool iteratorAdvanced = false; + + ShapeDrawable& geom = static_cast(obj); + + bool matchedFirst = false; + + return iteratorAdvanced; +} + +bool ShapeDrawable_writeLocalData(const Object& obj, Output& fw) +{ + const ShapeDrawable& geom = static_cast(obj); + + return true; +}