/*
* The stroke font structures
*/
#include "tinygl.h"
typedef struct tagSOG_StrokeVertex SOG_StrokeVertex;
struct tagSOG_StrokeVertex
{
GLfloat X, Y;
};
typedef struct tagSOG_StrokeStrip SOG_StrokeStrip;
struct tagSOG_StrokeStrip
{
int Number;
const SOG_StrokeVertex *Vertices;
};
typedef struct tagSOG_StrokeChar SOG_StrokeChar;
struct tagSOG_StrokeChar
{
GLfloat Right;
int Number;
const SOG_StrokeStrip* Strips;
};
typedef struct tagSOG_StrokeFont SOG_StrokeFont;
struct tagSOG_StrokeFont
{
char *Name; /* The source font name */
int Quantity; /* Number of chars in font */
GLfloat Height; /* Height of the characters */
const SOG_StrokeChar **Characters; /* The characters mapping */
};