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

close
deprecated void close()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Variables

_shader
GLuint _shader;
Undocumented in source.

Meta