OpenSceneGraph
Public Types | Public Member Functions | Public Attributes | List of all members
osgText::Text::GlyphQuads Struct Reference
Collaboration diagram for osgText::Text::GlyphQuads:
Collaboration graph
[legend]

Public Types

typedef std::vector< Glyph * > Glyphs
 
typedef std::vector< unsigned int > LineNumbers
 
typedef osg::ref_ptr< osg::Vec2ArrayCoords2
 
typedef osg::ref_ptr< osg::Vec3ArrayCoords3
 
typedef osg::ref_ptr< osg::Vec2ArrayTexCoords
 
typedef osg::ref_ptr< osg::Vec4ArrayColorCoords
 

Public Member Functions

void updateQuadIndices ()
 
 GlyphQuads (const GlyphQuads &gq)
 
void initGlyphQuads ()
 
void initGPUBufferObjects ()
 
Glyphs & getGlyphs ()
 
const Glyphs & getGlyphs () const
 
Coords2getCoords ()
 
const Coords2getCoords () const
 
Coords3getTransformedCoords (unsigned int contexID)
 
const Coords3getTransformedCoords (unsigned int contexID) const
 
TexCoordsgetTexCoords ()
 
const TexCoordsgetTexCoords () const
 
LineNumbers & getLineNumbers ()
 
const LineNumbers & getLineNumbers () const
 
void resizeGLObjectBuffers (unsigned int maxSize)
 Resize any per context GLObject buffers to specified size. More...
 
void releaseGLObjects (osg::State *state=0) const
 If State is non-zero, this function releases OpenGL objects for the specified graphics context. More...
 

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::DrawElementsUInt_quadIndices
 

Member Function Documentation

◆ 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.


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