Fix for build under Linux.
This commit is contained in:
@@ -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
|
||||
|
||||
41
src/osgPlugins/osg/ShapeDrawable.cpp
Normal file
41
src/osgPlugins/osg/ShapeDrawable.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user