com.metsci.glimpse.gl.shader
Class ShaderSource
java.lang.Object
com.metsci.glimpse.gl.shader.ShaderSource
public class ShaderSource
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShaderSource
public ShaderSource(java.lang.String location,
StreamOpener opener)
throws java.io.IOException
- Throws:
java.io.IOException
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.