openscenegraph
Public Types | Public Member Functions | Public Attributes | List of all members
osgText::Text::GlyphQuads Struct Reference

Public Types

typedef std::vector< Glyph * > Glyphs
 
typedef std::vector< unsigned int > LineNumbers
 
typedef osg::ref_ptr< osg::Vec2Array > Coords2
 
typedef osg::ref_ptr< osg::Vec3Array > Coords3
 
typedef osg::ref_ptr< osg::Vec2Array > TexCoords
 
typedef osg::ref_ptr< osg::Vec4Array > ColorCoords
 

Public Member Functions

void updateQuadIndices ()
 
 GlyphQuads ()
 
 GlyphQuads (const GlyphQuads &gq)
 
void initGlyphQuads ()
 
void initGPUBufferObjects ()
 
Glyphs & getGlyphs ()
 
const Glyphs & getGlyphs () const
 
Coords2 & getCoords ()
 
const Coords2 & getCoords () const
 
Coords3 & getTransformedCoords (unsigned int contexID)
 
const Coords3 & getTransformedCoords (unsigned int contexID) const
 
TexCoords & getTexCoords ()
 
const TexCoords & getTexCoords () const
 
LineNumbers & getLineNumbers ()
 
const LineNumbers & getLineNumbers () const
 
void resizeGLObjectBuffers (unsigned int maxSize)
 
void releaseGLObjects (osg::State *state=0) const
 

Public Attributes

Glyphs _glyphs
 
Coords2 _coords
 
osg::buffered_object< Coords3 > _transformedCoords
 
TexCoords _texcoords
 
LineNumbers _lineNumbers
 
osg::buffered_object< Coords3 > _transformedBackdropCoords [8]
 
ColorCoords _colorCoords
 
osg::ref_ptr< osg::DrawElements > _quadIndices
 

Member Typedef Documentation

◆ ColorCoords

◆ Coords2

◆ Coords3

◆ Glyphs

◆ LineNumbers

typedef std::vector<unsigned int> osgText::Text::GlyphQuads::LineNumbers

◆ TexCoords

Constructor & Destructor Documentation

◆ GlyphQuads() [1/2]

osgText::Text::GlyphQuads::GlyphQuads ( )

◆ GlyphQuads() [2/2]

osgText::Text::GlyphQuads::GlyphQuads ( const GlyphQuads &  gq)

Member Function Documentation

◆ getCoords() [1/2]

Coords2& osgText::Text::GlyphQuads::getCoords ( )
inline

◆ getCoords() [2/2]

const Coords2& osgText::Text::GlyphQuads::getCoords ( ) const
inline

◆ getGlyphs() [1/2]

Glyphs& osgText::Text::GlyphQuads::getGlyphs ( )
inline

◆ getGlyphs() [2/2]

const Glyphs& osgText::Text::GlyphQuads::getGlyphs ( ) const
inline

◆ getLineNumbers() [1/2]

LineNumbers& osgText::Text::GlyphQuads::getLineNumbers ( )
inline

◆ getLineNumbers() [2/2]

const LineNumbers& osgText::Text::GlyphQuads::getLineNumbers ( ) const
inline

◆ getTexCoords() [1/2]

TexCoords& osgText::Text::GlyphQuads::getTexCoords ( )
inline

◆ getTexCoords() [2/2]

const TexCoords& osgText::Text::GlyphQuads::getTexCoords ( ) const
inline

◆ getTransformedCoords() [1/2]

Coords3& osgText::Text::GlyphQuads::getTransformedCoords ( unsigned int  contexID)
inline

◆ getTransformedCoords() [2/2]

const Coords3& osgText::Text::GlyphQuads::getTransformedCoords ( unsigned int  contexID) const
inline

◆ initGlyphQuads()

void osgText::Text::GlyphQuads::initGlyphQuads ( )

◆ initGPUBufferObjects()

void osgText::Text::GlyphQuads::initGPUBufferObjects ( )

◆ releaseGLObjects()

void osgText::Text::GlyphQuads::releaseGLObjects ( osg::State *  state = 0) const

If State is non-zero, this function releases OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objexts for all graphics contexts.

◆ resizeGLObjectBuffers()

void osgText::Text::GlyphQuads::resizeGLObjectBuffers ( unsigned int  maxSize)

Resize any per context GLObject buffers to specified size.

◆ updateQuadIndices()

void osgText::Text::GlyphQuads::updateQuadIndices ( )

Member Data Documentation

◆ _colorCoords

ColorCoords osgText::Text::GlyphQuads::_colorCoords

◆ _coords

Coords2 osgText::Text::GlyphQuads::_coords

◆ _glyphs

Glyphs osgText::Text::GlyphQuads::_glyphs

◆ _lineNumbers

LineNumbers osgText::Text::GlyphQuads::_lineNumbers

◆ _quadIndices

osg::ref_ptr<osg::DrawElements> osgText::Text::GlyphQuads::_quadIndices

◆ _texcoords

TexCoords osgText::Text::GlyphQuads::_texcoords

◆ _transformedBackdropCoords

osg::buffered_object<Coords3> osgText::Text::GlyphQuads::_transformedBackdropCoords[8]

◆ _transformedCoords

osg::buffered_object<Coords3> osgText::Text::GlyphQuads::_transformedCoords

The documentation for this struct was generated from the following file: