GLShader

OpenGL Shader wrapper.

Constructors

this
this(OpenGL gl, GLenum shaderType)

Creates a shader devoid of source code.

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

Creates a shader with source code and compiles it.

Destructor

~this
~this()

Releases the OpenGL shader resource.

Members

Functions

compile
void compile()

Compile this OpenGL shader.

getInfoLog
const(char)[] getInfoLog()

Gets the compiling report.

load
void load(string[] lines)

Load source code for this shader.

Meta