Fix for build under Linux.

This commit is contained in:
Robert Osfield
2002-11-07 08:48:30 +00:00
parent d7f6ab3147
commit 15773d920a
2 changed files with 43 additions and 2 deletions

View File

@@ -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

View File

@@ -0,0 +1,41 @@
#include <osg/ShapeDrawable>
#include <osgDB/Registry>
#include <osgDB/Input>
#include <osgDB/Output>
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<ShapeDrawable&>(obj);
bool matchedFirst = false;
return iteratorAdvanced;
}
bool ShapeDrawable_writeLocalData(const Object& obj, Output& fw)
{
const ShapeDrawable& geom = static_cast<const ShapeDrawable&>(obj);
return true;
}