openvrml::vrml97_node::text_node::glyph_geometry Struct Reference
Used to hold the geometry of individual glyphs.
More...
List of all members.
|
Public Member Functions |
| glyph_geometry (const std::vector< std::vector< vec2f > > &contours, float advance_width, float advance_height) throw (std::bad_alloc) |
| Construct from a set of contours.
|
Public Attributes |
std::vector< vec2f > | coord |
| Glyph coordinates.
|
std::vector< int32 > | coord_index |
| Glyph coordinate indices.
|
float | advance_width |
| The distance the pen should advance horizontally after drawing the glyph.
|
float | advance_height |
| The distance the pen should advance vertically after drawing the glyph.
|
Detailed Description
Used to hold the geometry of individual glyphs.
Constructor & Destructor Documentation
openvrml::vrml97_node::text_node::glyph_geometry::glyph_geometry |
( |
const std::vector< std::vector< vec2f > > & |
contours, |
|
|
float |
advance_width, |
|
|
float |
advance_height |
|
) |
throw (std::bad_alloc) |
|
|
Construct from a set of contours.
- Parameters:
-
contours | a vector of closed contours that make up the glyph's outline. |
advance_width | the distance the pen should advance horizontally after drawing the glyph. |
advance_height | the distance the pen should advance vertically after drawing the glyph. |
- Exceptions:
-
std::bad_alloc | if memory allocation fails. |
|