Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Urgent FTGL crash :: Cannot render text after the 500th items.....???

Threaded View

  1. #1
    Newbie Newbie
    Join Date
    Aug 2013
    Posts
    2

    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.
    Last edited by KenOng; 08-21-2013 at 02:42 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •