com.threerings.opengl.renderer.config
Class ShaderConfig.Fragment

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.Implementation
          extended by com.threerings.opengl.renderer.config.ShaderConfig.Original
              extended by com.threerings.opengl.renderer.config.ShaderConfig.Fragment
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ShaderConfig

public static class ShaderConfig.Fragment
extends ShaderConfig.Original

A fragment shader.


Nested Class Summary
static class ShaderConfig.Fragment.Contents
          The initial contents of the shader.
static class ShaderConfig.Fragment.SourceFile
          Creates a shader from the specified file.
 
Field Summary
 ShaderConfig.Fragment.Contents contents
          The initial contents of the shader.
 
Fields inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Original
uniforms
 
Constructor Summary
ShaderConfig.Fragment()
           
 
Method Summary
 Shader getShader(GlContext ctx, Scope scope, RenderState[] states, boolean vertexProgramTwoSide)
          Returns the shader corresponding to this configuration.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
 void populateDescriptor(GlContext ctx, PassDescriptor desc)
          Populates the relevant portion of the supplied descriptor.
 
Methods inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Original
getUniforms
 
Methods inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Implementation
getUpdateReferences
 
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

contents

@Editable
public ShaderConfig.Fragment.Contents contents
The initial contents of the shader.

Constructor Detail

ShaderConfig.Fragment

public ShaderConfig.Fragment()
Method Detail

getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Description copied from class: ShaderConfig.Implementation
Adds the implementation's update resources to the provided set.

Overrides:
getUpdateResources in class ShaderConfig.Implementation

populateDescriptor

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

Specified by:
populateDescriptor in class ShaderConfig.Implementation

getShader

public Shader getShader(GlContext ctx,
                        Scope scope,
                        RenderState[] states,
                        boolean vertexProgramTwoSide)
Description copied from class: ShaderConfig.Implementation
Returns the shader corresponding to this configuration.

Specified by:
getShader in class ShaderConfig.Implementation


Copyright © 2011. All Rights Reserved.