Urgent FTGL crash :: Cannot render text after the 500th items.....???
Hi all, I need some urgent info for this. Thank you.
I am new to openGL and FTGL text rendering.
I am able to draw text. I've done something like this :
FTBitmapFont *flbl = new FTBitmapFont("C:/Windows/Fonts/Arial.ttf");
flbl->FaceSize(12);
flbl->Render("Hello");
But the application will crash after the 500++th items. eg.
static int count= 0;
char counter[1000];
if (count < 700) {
count++;
sprintf(counter,"%d",count);
FTBitmapFont *flbl = new FTBitmapFont("C:/Windows/Fonts/Arial.ttf");
flbl->FaceSize(24);
flbl->Render(counter);
}
then the program will crash after showing 509.
Anyone can help me on this?
Any limitation for FTGL to do large amount of text rendering?
Thank you very much.