Logo Search packages:      
Sourcecode: blender version File versions  Download package

void FTFont::Render ( const char *  string  )  [virtual, inherited]

Render a string of characters

Parameters:
string 'C' style string to be output.

Reimplemented in FTGLBitmapFont, FTGLBufferFont, FTGLOutlineFont, FTGLPixmapFont, and FTGLTextureFont.

Definition at line 226 of file FTFont.cpp.

References FTFont::DoRender(), FTFont::pen, FTPoint::x, and FTPoint::y.

Referenced by FTF_TTFont::DrawString(), FTGLTextureFont::Render(), FTGLPixmapFont::Render(), FTGLOutlineFont::Render(), FTGLBufferFont::Render(), and FTGLBitmapFont::Render().

{
    const unsigned char* c = (unsigned char*)string;
    pen.x = 0; pen.y = 0;

    while( *c)
    {
        DoRender( *c, *(c + 1));
        ++c;
    }
}


Generated by  Doxygen 1.6.0   Back to index