|
Due to the name of the function (QueryFloatAttribute) it feels like it queries a float attribute. There might be a function for quering strings though. Otherwise you can check out the Attribute(const char*) function. It returns a const char* for you.
A tip is to use the debugger to see if variables have gotten the correct values. Another good way is to use std::cout or printf.
|