glcGetCharMetric(3G) OpenGL Character Renderer glcGetCharMetric(3G)
glcGetCharMetric - measure a character
GLfloat* glcGetCharMetric( GLint inCode,
GLCenum inMetric,
GLfloat *outVec )
inCode Specifies the character to measure.
inMetric Specifies the metric to measure, either GLC_BASELINE or
GLC_BOUNDS.
outVec Specifies a vector in which to store value of inMetric for the
specified character.
glcGetCharMetric is identical to glcRenderChar but instead of rendering
the character that inCode is mapped to, glcGetCharMetric only measures
the baseline or bounds (depending on inMetric) of the character.
glcGetCharMetric stores the value of the baseline (or bounds) in outVec.
If inMetric is GLC_BOUNDS, a vector of eight values is returned in
outVec. The vector starts in the lower left corner and continues in a
counterclockwise direction.
GLC_STATE_ERROR is generated if the issuing thread has no current GLC
context.
glcGetMaxCharMetric, glcGetStringCharMetric, glcMeasureCountedString,
glcMeasureString
PPPPaaaaggggeeee 1111 [ Back ]
|