com.threerings.opengl.renderer.config
Class ShaderStateConfig.Enabled

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

public static class ShaderStateConfig.Enabled
extends ShaderStateConfig

Enables the shader.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.renderer.config.ShaderStateConfig
ShaderStateConfig.Disabled, ShaderStateConfig.Enabled
 
Field Summary
 ConfigReference<ShaderConfig> fragment
          The fragment shader to use.
 ConfigReference<ShaderConfig> vertex
          The vertex shader to use.
 boolean vertexProgramTwoSide
          Whether or not to enable two-sided vertex program mode.
 
Constructor Summary
ShaderStateConfig.Enabled()
           
 
Method Summary
 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.
 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
 

Field Detail

vertex

@Editable(nullable=true)
public ConfigReference<ShaderConfig> vertex
The vertex shader to use.


fragment

@Editable(nullable=true)
public ConfigReference<ShaderConfig> fragment
The fragment shader to use.


vertexProgramTwoSide

@Editable
public boolean vertexProgramTwoSide
Whether or not to enable two-sided vertex program mode.

Constructor Detail

ShaderStateConfig.Enabled

public ShaderStateConfig.Enabled()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ShaderStateConfig
Adds the state's update references to the provided set.

Overrides:
getUpdateReferences in class ShaderStateConfig

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Description copied from class: ShaderStateConfig
Determines whether this state is supported by the hardware.

Specified by:
isSupported in class ShaderStateConfig

populateDescriptor

public void populateDescriptor(GlContext ctx,
                               PassDescriptor desc)
Description copied from class: ShaderStateConfig
Populates the relevant portion of the supplied descriptor.

Overrides:
populateDescriptor in class ShaderStateConfig

getState

public ShaderState getState(GlContext ctx,
                            Scope scope,
                            RenderState[] states,
                            List<Updater> updaters)
Description copied from class: ShaderStateConfig
Returns the corresponding shader state.

Specified by:
getState in class ShaderStateConfig


Copyright © 2011. All Rights Reserved.