Ignore:
Timestamp:
Aug 14, 2010, 11:15:43 PM (11 years ago)
Author:
sam
Message:

The frame counter is now an asset object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/font.cpp

    r100 r111  
    3333
    3434private:
     35    char *name;
     36
    3537    SDL_Surface *img;
    3638    GLuint texture[1];
     
    4446{
    4547    data = new FontData();
     48    data->name = strdup(path);
    4649    data->img = NULL;
    4750
     
    7477}
    7578
     79Asset::Group Font::GetGroup()
     80{
     81    return GROUP_BEFORE;
     82}
     83
     84void Font::TickRender(float delta_time)
     85{
     86    Asset::TickRender(delta_time);
     87}
     88
     89char const *Font::GetName()
     90{
     91    return data->name;
     92}
     93
    7694void Font::Print(int x, int y, char const *str)
    7795{
Note: See TracChangeset for help on using the changeset viewer.