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

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.Vertex
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ShaderConfig

public static class ShaderConfig.Vertex
extends ShaderConfig.Original

A vertex shader.


Nested Class Summary
static class ShaderConfig.Vertex.Contents
          The initial contents of the shader.
static class ShaderConfig.Vertex.SourceFile
          Creates a shader from the specified file.
 
Field Summary
 String[] attributes
          The names of the attributes required by this shader.
 boolean colors
          Whether or not the shader uses the color state.
 ShaderConfig.Vertex.Contents contents
          The initial contents of the shader.
 CoordSpace coordSpace
          The coordinate space in which the shader operates.
 String[] hints
          Hints to pass to the geometry handler.
 boolean normals
          Whether or not the shader uses the normal state.
 
Fields inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Original
uniforms
 
Constructor Summary
ShaderConfig.Vertex()
           
 
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

hints

@Editable(width=15)
public String[] hints
Hints to pass to the geometry handler.


attributes

@Editable(width=15)
public String[] attributes
The names of the attributes required by this shader.


coordSpace

@Editable(hgroup="t")
public CoordSpace coordSpace
The coordinate space in which the shader operates.


colors

@Editable(hgroup="t")
public boolean colors
Whether or not the shader uses the color state.


normals

@Editable(hgroup="t")
public boolean normals
Whether or not the shader uses the normal state.


contents

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

Constructor Detail

ShaderConfig.Vertex

public ShaderConfig.Vertex()
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.