com.threerings.opengl.renderer.config
Class ShaderStateConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderStateConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ShaderStateConfig.Disabled, ShaderStateConfig.Enabled

@EditorTypes(value={ShaderStateConfig.Disabled.class,ShaderStateConfig.Enabled.class})
public abstract class ShaderStateConfig
extends DeepObject
implements Exportable

Configurable shader state.


Nested Class Summary
static class ShaderStateConfig.Disabled
          Disables the shader.
static class ShaderStateConfig.Enabled
          Enables the shader.
 
Constructor Summary
ShaderStateConfig()
           
 
Method Summary
abstract  ShaderState getState(GlContext ctx, Scope scope, RenderState[] states, List<Updater> updaters)
          Returns the corresponding shader state.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the state's update references to the provided set.
abstract  boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this state is supported by the hardware.
 void populateDescriptor(GlContext ctx, 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
 

Constructor Detail

ShaderStateConfig

public ShaderStateConfig()
Method Detail

getUpdateReferences

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


isSupported

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


populateDescriptor

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


getState

public abstract ShaderState getState(GlContext ctx,
                                     Scope scope,
                                     RenderState[] states,
                                     List<Updater> updaters)
Returns the corresponding shader state.



Copyright © 2011. All Rights Reserved.