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 2 of 2

Thread: Does anybody use AntTweakBar here string question

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2009
    Posts
    22

    Does anybody use AntTweakBar here string question

    Hello,
    Im tryingto use AnttweakBar in my application I having trouble with loading strings, I have asked for help on there forum but it doesnt appear very active so Im posting here and hoping for the best

    Here my code:
    in_mm_res_to_string(x_buffer, x, units);
    sprintf(buffer
    "%s %s", x_buffer, units);
    TwAddVarRW(pointBar,
    "X:", TW_TYPE_CSSTRING(sizeof(buffer)), buffer, "");


    Basically when I run the debigger The data is in the buffer correctly but it is not being displayed in the tweakbar ( im getting just garbage )

    Thanks for your help

    -Derrek

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    I don't use AntTweakBar but this sort of problem often comes from it not finding the font texture. I would check if the font texture is loaded correctly

Posting Permissions

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