public class ShaderSource extends Object
Constructor and Description |
---|
ShaderSource(String location,
StreamOpener opener) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMain() |
List<ShaderArg> |
extractArgs() |
String |
getSource() |
String[] |
getSourceLines() |
static String[] |
readSource(InputStream in)
Reads an ASCII file into an array of strings, one for each line.
|
public ShaderSource(String location, StreamOpener opener) throws IOException
IOException
public String[] getSourceLines()
public String getSource()
public static String[] readSource(InputStream in) throws IOException
in
- input stream to load source fromIOException
public boolean containsMain()
Copyright © 2013 Metron, Inc.. All rights reserved.