#include <OGLFT.h>
Inheritance diagram for OGLFT::Filled:
Public Methods | |
Filled (const char *filename, float point_size=12, FT_UInt resolution=100) | |
Filled (FT_Face face, float point_size=12, FT_UInt resolution=100) | |
virtual | ~Filled (void) |
VertexInfoList & | extraVertices (void) |
Protected Methods | |
void | renderGlyph (FT_Face face, FT_UInt glyph_index) |
Protected Attributes | |
GLfloat | depth_offset_ |
Usually, the polygons are drawn only in the foreground color, however, you may supply ColorTess and TextureTess objects which can alter the color or texture coordinates of each vertex individually. You can also use the per-glyph display list functionality to alter the attributes of each glyph.
The only complexity to this style is selecting the point size. Since the glyphs are drawn as polygons, they are subject to the viewing and modeling transformations. The point size is nominally chosen to be the same as a raster image generated at the given resolution. Some experimentation with point size and resolution may be necessary to achieve the desired results.
|
|
|
|
|
The destructor deletes the GLU tessellation object allocated in in the constructor. |
|
|
|
Each style implements its own glyph rendering routine.
Implements OGLFT::Face. |
|
Offset the glyph in the Z direction. Solely for the Solid subclass. Until I can figure out how to shift the glyph outside the context of this class, I guess this has got to stay (but it is redundant to extrusion_.depth_) |