Added support hud property for title, bullets and paragraph tags

This commit is contained in:
Robert Osfield
2011-03-15 19:54:57 +00:00
parent bdd4a67d7c
commit f2ce2f19a9
3 changed files with 114 additions and 47 deletions

View File

@@ -131,7 +131,8 @@ public:
animation_material_time_multiplier(1.0),
animation_material_loop_mode(AnimationMaterial::NO_LOOPING),
autoRotate(false),
autoScale(false) {}
autoScale(false),
hud(false) {}
bool requiresPosition() const
@@ -178,6 +179,7 @@ public:
std::string fade;
bool autoRotate;
bool autoScale;
bool hud;
};
struct ModelData
@@ -405,14 +407,19 @@ protected:
return stateset;
}
osg::Node* decorateSubgraphForPosition(osg::Node* node, PositionData& positionData);
osg::ref_ptr<osgDB::Options> _options;
osg::Vec3 _slideOrigin;
osg::Vec3 _eyeOrigin;
float _slideWidth;
float _slideHeight;
float _slideDistance;
double _slideWidth;
double _slideHeight;
double _slideDistance;
unsigned _leftEyeMask;
unsigned _rightEyeMask;
double _eyeOffset;
// title settings
FontData _titleFontData;
FontData _titleFontDataDefault;