Ignore:
Timestamp:
Feb 1, 2011, 2:20:03 AM (9 years ago)
Author:
sam
Message:

Implement Text::SetInt().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/text.cpp

    r320 r325  
    5454}
    5555
     56void Text::SetInt(int val)
     57{
     58    if (data->text)
     59        free(data->text);
     60    char buf[128];
     61    sprintf(buf, "%i", val);
     62    data->text = strdup(buf);
     63}
     64
    5665void Text::SetPos(int3 pos)
    5766{
Note: See TracChangeset for help on using the changeset viewer.