com.metsci.glimpse.gl.shader
Class ShaderSource

java.lang.Object
  extended by com.metsci.glimpse.gl.shader.ShaderSource

public class ShaderSource
extends java.lang.Object


Constructor Summary
ShaderSource(java.lang.String location, StreamOpener opener)
           
 
Method Summary
 boolean containsMain()
           
 java.util.List<ShaderArg> extractArgs()
           
 java.lang.String getSource()
           
 java.lang.String[] getSourceLines()
           
static java.lang.String[] readSource(java.io.InputStream in)
          Reads an ASCII file into an array of strings, one for each line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShaderSource

public ShaderSource(java.lang.String location,
                    StreamOpener opener)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getSourceLines

public java.lang.String[] getSourceLines()

getSource

public java.lang.String getSource()

readSource

public static java.lang.String[] readSource(java.io.InputStream in)
                                     throws java.io.IOException
Reads an ASCII file into an array of strings, one for each line.

Parameters:
in - input stream to load source from
Returns:
an array of strings, one for each line in the file
Throws:
java.io.IOException

containsMain

public boolean containsMain()

extractArgs

public java.util.List<ShaderArg> extractArgs()


Copyright © 2012 Metron, Inc.. All Rights Reserved.