|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.neovisionaries.android.opengl.Shader<FragmentShader>
com.neovisionaries.android.opengl.FragmentShader
public class FragmentShader
OpenGL ES fragment shader.
| Constructor Summary | |
|---|---|
FragmentShader()
A constructor. |
|
FragmentShader(File file)
A constructor with a shader source file. |
|
FragmentShader(InputStream in)
A constructor with an input stream that feeds a shader source code. |
|
FragmentShader(InputStream in,
boolean close)
A constructor with an input stream that feeds a shader source code. |
|
FragmentShader(String source)
A constructor with a shader source. |
|
| Method Summary |
|---|
| Methods inherited from class com.neovisionaries.android.opengl.Shader |
|---|
compile, delete, getId, getState, isAutoDeleted, releaseCompiler, setAutoDeleted, setSource, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FragmentShader()
throws GLESException
super(ShaderType.FRAGMENT) is called.
After this constructor returns, the state of
this instance is ShaderState.CREATED.
GLESException - glCreateShader() failed.Shader.Shader(ShaderType),
glCreateShader
public FragmentShader(String source)
throws GLESException
super(ShaderType.FRAGMENT, source) is called. After
this constructor returns, the state of this
instance is ShaderState.SOURCE_SET.
source - A shader source code.
IllegalArgumentException - The argument is null.
GLESException - glCreateShader() failed.Shader.Shader(ShaderType, String),
glCreateShader,
glShaderSource
public FragmentShader(File file)
throws IOException,
GLESException
super(ShaderType.FRAGMENT, file) is called. After
this constructor returns, the state of this
instance is ShaderState.SOURCE_SET.
file - A file whose content is a shader source code.
IllegalArgumentException - The argument is null.
IOException - Failed to read the content of the given file.
GLESException - glCreateShader() failed.Shader.Shader(ShaderType, File),
glCreateShader,
glShaderSource
public FragmentShader(InputStream in)
throws IOException,
GLESException
super(ShaderType.FRAGMENT, in) is called. After this
constructor returns, the state of this instance is ShaderState.SOURCE_SET.
in - An input stream that feeds a shader source code.
IllegalArgumentException - The argument is null.
IOException - Failed to read the content of the input stream.
GLESException - glCreateShader() failed.Shader.Shader(ShaderType, InputStream),
glCreateShader,
glShaderSource
public FragmentShader(InputStream in,
boolean close)
throws IOException,
GLESException
super(ShaderType.FRAGMENT, in, close) is
called. After this constructor returns, the state of this
instance is ShaderState.SOURCE_SET.
in - An input stream that feeds a shader source code.close - If true is given, the input stream is closed before
this method returns.
IllegalArgumentException - The argument is null.
IOException - Failed to read the content of the input stream.
GLESException - glCreateShader() failed.Shader.Shader(ShaderType, InputStream, boolean),
glCreateShader,
glShaderSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||