public interface FakeShaderListenerType
| Modifier and Type | Method and Description |
|---|---|
void |
onCompileFragmentShaderStart(FakeContext context,
String name,
List<String> sources)
Called when the fragment shader
name is about to be compiled. |
void |
onCompileGeometryShaderStart(FakeContext context,
String name,
List<String> sources)
Called when the geometry shader
name is about to be compiled. |
void |
onCompileVertexShaderStart(FakeContext context,
String name,
List<String> sources)
Called when the vertex shader
name is about to be compiled. |
void |
onLinkProgram(FakeContext context,
JCGLProgramShaderUsableType p,
String name,
JCGLVertexShaderUsableType v,
Optional<JCGLGeometryShaderUsableType> g,
JCGLFragmentShaderUsableType f,
Map<String,JCGLProgramAttributeType> attributes,
Map<String,JCGLProgramUniformType> uniforms)
Called when a program is about to be linked.
|
void onCompileVertexShaderStart(FakeContext context, String name, List<String> sources) throws JCGLException
name is about to be compiled.context - The current contextname - The namesources - The source codeJCGLException - If requiredvoid onCompileFragmentShaderStart(FakeContext context, String name, List<String> sources) throws JCGLException
name is about to be compiled.context - The current contextname - The namesources - The source codeJCGLException - If requiredvoid onCompileGeometryShaderStart(FakeContext context, String name, List<String> sources) throws JCGLException
name is about to be compiled.context - The current contextname - The namesources - The source codeJCGLException - If requiredvoid onLinkProgram(FakeContext context, JCGLProgramShaderUsableType p, String name, JCGLVertexShaderUsableType v, Optional<JCGLGeometryShaderUsableType> g, JCGLFragmentShaderUsableType f, Map<String,JCGLProgramAttributeType> attributes, Map<String,JCGLProgramUniformType> uniforms) throws JCGLException
context - The current contextp - The resulting programname - The program namev - The vertex shaderg - The optional geometry shaderf - The fragment shaderattributes - The attributes that the resulting program will haveuniforms - The uniforms that the resulting program will haveJCGLException - If requiredCopyright © 2015 <code@io7m.com> http://io7m.com