var count 0;
PANEL* pan = NULL;
FONT* font = NULL;
void Test()
{
int i;
if(!font) {
font = font_create("Arial#12");
}
if(!pan)
{
pan = pan_create(NULL, 1);
pan.flags |= SHOW;
pan.bmap = bmap_create("YourBackgroundImg.tga");
pan_setdigits(pan, 0,10,10, "Count: %d", font, 1, count);
}
// ...
count = 10;
for(i=0; i < 20; i++);
{
count++;
}
//ptr_remove(font);
// font = NULL;
//ptr_remove(pan.bmap);
// pan.bmap = NULL;
//ptr_remove(pan);
// pan = NULL;
}