14#ifndef OSGTEXT_FADETEXT
15#define OSGTEXT_FADETEXT 1
33 void setFadeSpeed(
float fadeSpeed) {
_fadeSpeed = fadeSpeed; }
The osgText library is a NodeKit that extends the core scene graph to support high quality text.
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
virtual ~FadeText()
Definition FadeText:43
float _fadeSpeed
Definition FadeText:55
float getFadeSpeed() const
Get the speed that the alpha value changes.
Definition FadeText:36
const ViewBlendColourMap & getViewBlendColourMap() const
Definition FadeText:53
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
Draw the text.
ViewBlendColourMap & getViewBlendColourMap()
Definition FadeText:52
META_Object(osgText, FadeText) void setFadeSpeed(float fadeSpeed)
Set the speed that the alpha value changes as the text is occluded or becomes visible.
Definition FadeText:29
ViewBlendColourMap _viewBlendColourMap
Definition FadeText:57
std::map< osg::View *, osg::Vec4 > ViewBlendColourMap
Definition FadeText:50
friend struct FadeTextUpdateCallback
Definition FadeText:48
FadeText(const Text &text, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
#define OSGTEXT_EXPORT
Definition Export:39