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

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

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

@see ConsoleDynamicTypes

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