Added a AnimationPathCallback which can update both a MatrixTransform and a
PositionAttitudeTransform, removed the equivialnt callbacks once found in these transform classes. Changed the NodeCallback class so its derived from osg::Object instead of osg::Referenced to allow it to be saved out in the .osg format. Added support for Update and Cull callbacks into the .osg file format. Added support for AnimationPathCallback into the .osg file format.
This commit is contained in:
@@ -24,6 +24,8 @@ FltFile::FltFile(
|
||||
TexturePool* pTexturePool,
|
||||
MaterialPool* pMaterialPool)
|
||||
{
|
||||
_useTextureAlphaForTransparancyBinning = true;
|
||||
|
||||
if (pColorPool)
|
||||
{
|
||||
// use external color palette, ignore internal
|
||||
@@ -91,6 +93,7 @@ osg::Node* FltFile::readNode(const std::string& fileName)
|
||||
osg::Group* FltFile::convert()
|
||||
{
|
||||
ConvertFromFLT visit;
|
||||
visit.setUseTextureAlphaForTransparancyBinning(getUseTextureAlphaForTransparancyBinning());
|
||||
return visit.convert(getHeaderRecord());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user