glamour.shader

Undocumented in source.

Members

Aliases

Line
alias Line = Tuple!(size_t, "line", string, "text")

Stores each line of the shader, line and text.

ShaderError
deprecated alias ShaderError = ShaderException
Undocumented in source.

Classes

Shader
class Shader

Represents an OpenGL program with it's shaders. The constructor must be used to avoid segmentation faults.

ShaderException
class ShaderException

This exception will be raised when an error occurs while compiling or linking a shader.

Functions

compile_shader
void compile_shader(GLuint shader, string filename)

Compiles an already created OpenGL shader.

link_program
void link_program(GLuint program, string filename)

Links an already created OpenGL program.

to_opengl_shader
GLenum to_opengl_shader(string s, string filename)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta