gfm



class  GLShader;

OpenGL Shader wrapper.


this(OpenGL gl, GLenum shaderType);

Creates a shader devoid of source code.

Throws
OpenGLException on error.

this(OpenGL gl, GLenum shaderType, string[] lines);

Creates a shader with source code and compiles it.

Throws
OpenGLException on error.

void  load(string[] lines);

Load source code for this shader.

Throws
OpenGLException on error.

void  compile();

Compile this OpenGL shader.

Throws
OpenGLException on compilation error.

const(char)[]  getInfoLog();

Gets the compiling report.

Returns
Log output of the GLSL compiler. Can return null!
Throws
OpenGLException on error.