MaterialControls.h File Reference

#include "CEGUI/CEGUIForwardRefs.h"
#include "OgreString.h"

Include dependency graph for MaterialControls.h:

This graph shows which files directly or indirectly include this file:

Functions

void loadMaterialControlsFile (MaterialControlsContainer &controlsContainer, const Ogre::String &filename)
void loadAllMaterialControlFiles (MaterialControlsContainer &controlsContainer)

Detailed Description

Ogre default resource loading facilities

Function Documentation

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.


Generated on Sun Jun 15 18:43:17 2008 for SpadeShip Project by  doxygen 1.5.5