#include "CEGUI/CEGUIForwardRefs.h"
#include "OgreString.h"
Functions | |
void | loadMaterialControlsFile (MaterialControlsContainer &controlsContainer, const Ogre::String &filename) |
void | loadAllMaterialControlFiles (MaterialControlsContainer &controlsContainer) |
void loadAllMaterialControlFiles | ( | MaterialControlsContainer & | controlsContainer | ) |
load all control files found in resource paths
void loadMaterialControlsFile | ( | MaterialControlsContainer & | controlsContainer, | |
const Ogre::String & | filename | |||
) |
loads material shader controls from a configuration file A .controls file is made up of the following:
[<material display="" name>="">] material = <material name>=""> control = <Control name>="">, <Shader parameter="" name>="">, <Parameter type>="">, <Min val>="">, <Max val>="">, <Parameter sub="" index>="">
<material display="" name>=""> is what is displayed in the material combo box. <material name>=""> is the name of the material in the material script. control is the shader control associated with the material. The order of the contol definions in the .controls file determins their order when displayed in the controls window.
you can have multiple .controls files or put them all in one.