compile_shader

Compiles an already created OpenGL shader.

void
compile_shader
(
GLuint shader
,
string filename = "<unknown>"
)

Parameters

shader GLuint

The OpenGL shader.

filename string

Used to identify the shader, if an error occurs.

Throws

ShaderException on failure.

Meta