Error implements the error interface.
()
| 184 | |
| 185 | // Error implements the error interface. |
| 186 | func (v VertexShaderCompilationError) Error() string { |
| 187 | return fmt.Sprintf("an error occurred compiling the vertex shader: %s", strings.Trim(v.OpenGLError, "\r\n")) |
| 188 | } |
| 189 | |
| 190 | // FragmentShaderCompilationError is returned whenever the `LoadShader` method was unable to compile your Fragment-shader (GLSL) |
| 191 | type FragmentShaderCompilationError struct { |
no outgoing calls