com.threerings.opengl.renderer.config
Class TextureStateConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureStateConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class TextureStateConfig
extends DeepObject
implements Exportable

Configurable texture state.


Field Summary
 boolean uniqueInstance
          If true, do not use a shared instance.
 TextureUnitConfig[] units
          The texture unit configurations.
 
Constructor Summary
TextureStateConfig()
           
 
Method Summary
 TextureState getState(GlContext ctx, Scope scope, List<Dependency.Adder> adders, List<Updater> updaters)
          Returns the corresponding texture state.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the state's update references to the provided set.
 void invalidate()
          Invalidates the config's cached data.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this state is supported by the hardware.
 void populateDescriptor(PassDescriptor desc)
          Populates the relevant portion of the supplied descriptor.
 
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

uniqueInstance

@Editable
public boolean uniqueInstance
If true, do not use a shared instance.


units

@Editable
public TextureUnitConfig[] units
The texture unit configurations.

Constructor Detail

TextureStateConfig

public TextureStateConfig()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the state's update references to the provided set.


isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Determines whether this state is supported by the hardware.


populateDescriptor

public void populateDescriptor(PassDescriptor desc)
Populates the relevant portion of the supplied descriptor.


getState

public TextureState getState(GlContext ctx,
                             Scope scope,
                             List<Dependency.Adder> adders,
                             List<Updater> updaters)
Returns the corresponding texture state.


invalidate

public void invalidate()
Invalidates the config's cached data.



Copyright © 2011. All Rights Reserved.