14 #ifndef OSGTEXT_TEXT3D
15 #define OSGTEXT_TEXT3D 1
18 #include <osgText/TextBase>
19 #include <osgText/Style>
47 float getCharacterDepth() const;
50 void setCharacterDepth(
float characterDepth);
65 if (_wallStateSet.valid() ==
false) _wallStateSet =
new osg::StateSet;
66 return _wallStateSet.get();
102 virtual void setThreadSafeRefUnref(
bool threadSafe);
105 virtual void resizeGLObjectBuffers(
unsigned int maxSize);
110 virtual void releaseGLObjects(
osg::State* state=0)
const;
123 void renderPerGlyph(
osg::State & state)
const;
126 String::iterator computeLastCharacterOnLine(
osg::Vec2& cursor, String::iterator first,String::iterator last);
128 void computeGlyphRepresentation();
129 void computePositions(
unsigned int contextID)
const;
135 _glyphGeometry(glyphGeometry),
void setBackStateSet(osg::StateSet *backStateSet)
void setWallStateSet(osg::StateSet *wallStateSet)
void setRenderMode(RenderMode renderMode)
osg::StateSet * getOrCreateWallStateSet()
osg::StateSet * getWallStateSet()
#define META_Object(library, name)
virtual bool supports(const osg::Drawable::ConstAttributeFunctor &) const
osg::StateSet * getBackStateSet()
std::vector< LineRenderInfo > TextRenderInfo
TextRenderInfo _textRenderInfo
GlyphRenderInfo(GlyphGeometry *glyphGeometry, osg::Vec3 &pos)
osg::ref_ptr< GlyphGeometry > _glyphGeometry
const osg::StateSet * getWallStateSet() const
std::vector< GlyphRenderInfo > LineRenderInfo
osg::ref_ptr< osg::StateSet > _wallStateSet
virtual bool supports(const osg::Drawable::AttributeFunctor &) const
osg::ref_ptr< osg::StateSet > _backStateSet
osg::StateSet * getBackStateSet() const
osg::StateSet * getOrCreateBackStateSet()
virtual bool supports(const osg::PrimitiveFunctor &) const