PDA

View Full Version : Does anybody use AntTweakBar here string question



Digga
08-20-2013, 11:26 AM
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

tonyo_au
08-22-2013, 10:04 PM
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