If name
is "Default", then one of the {@link MaterialDef#getDefaultTechniques() default techniques}on the material will be selected. Otherwise, the named technique will be found in the material definition.
Any candidate technique for selection (either default or named) must be verified to be compatible with the system, for that, the renderManager
is queried for capabilities.
@param name The name of the technique to select, pass "Default" toselect one of the default techniques.
@param renderManager The {@link RenderManager render manager}to query for capabilities.
@throws IllegalArgumentException If "Default" is passed and no defaulttechniques are available on the material definition, or if a name is passed but there's no technique by that name.
@throws UnsupportedOperationException If no candidate technique supportsthe system capabilities.
|
|