Torque 3D 3.8
Con::addVariable Function
void addVariable(const char * name, S32 type, void * pointer, const char* usage = NULL);

Add a console variable that references the value of a variable in C++ code. 

If a value is assigned to the console variable the C++ variable is updated, and vice-versa. 

@param name Global console variable name to create. @param type The type of the C++ variable; see the ConsoleDynamicTypes enum for a complete list. @param pointer Pointer to the variable. @param usage Documentation string. 

@see ConsoleDynamicTypes 


Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!