Click or drag to resize

ShaderCompile Method

Compiles the shader;

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public bool Compile()

Return Value

Type: Boolean
In RELEASE mode: True on success, False on failure. In DEBUG mode: True on success or an GLException will be thrown on failure.
Exceptions
ExceptionCondition
GLExceptionInvalidOperation if a shader compiler is not supported.
ShaderExceptionWhen the source code contains errors and cannot be compiled.
Remarks

Note: in DEBUG mode, any compiler warnings will be output to the debug console.

OpenGL API: glCompileShader, glGetShaderInfoLog, glGetShaderiv(GL_COMPILE_STATUS/GL_INFO_LOG_LENGTH)

See Also