com.threerings.opengl.model.config
Class ModelConfig.Imported.MaterialMapping

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ModelConfig.Imported.MaterialMapping
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ModelConfig.Imported

public class ModelConfig.Imported.MaterialMapping
extends DeepObject
implements Exportable

Represents a mapping from texture name to material.


Field Summary
 ConfigReference<MaterialConfig> material
          The material for unskinned meshes.
 String tag
          The name of the tag.
 String texture
          The name of the texture.
 
Constructor Summary
ModelConfig.Imported.MaterialMapping()
           
ModelConfig.Imported.MaterialMapping(String texture, String tag, String path)
           
 
Method Summary
 String[] getTextureOptions()
          Returns the options available for the texture field.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

texture

@Editable(editor="choice",
          hgroup="t")
public String texture
The name of the texture.


tag

@Editable(hgroup="t")
public String tag
The name of the tag.


material

@Editable(nullable=true)
public ConfigReference<MaterialConfig> material
The material for unskinned meshes.

Constructor Detail

ModelConfig.Imported.MaterialMapping

public ModelConfig.Imported.MaterialMapping(String texture,
                                            String tag,
                                            String path)

ModelConfig.Imported.MaterialMapping

public ModelConfig.Imported.MaterialMapping()
Method Detail

getTextureOptions

public String[] getTextureOptions()
Returns the options available for the texture field.



Copyright © 2011. All Rights Reserved.