#ifndef _DRAW_TEXT_H
#define _DRAW_TEXT_H
#include "GlFunctions.h"
class DrawText
{
public:
    DrawText();
    ~DrawText();
    
    void SetPointSize(float pPointSize) { mPointSize = pPointSize; }
    
    void SetGap(float pGap) { mGap = pGap; }
    
    void Display(const char * pText);
private:
    
    void Initialize();
    struct Glyph
    {
        float advance;          
        float texture_left;     
        float texture_right;
        float texture_bottom;
        float texture_top;
        float vertex_left;      
        float vertex_right;     
        float vertex_bottom;
        float vertex_top;
    };
    Glyph * mGlyph;
    GLuint mTextureName;
    float mPointSize;
    float mGap;
};
#endif // _DRAW_TEXT_H