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()
Undocumented in source.

Members

Functions

close
void close()

Releases the OpenGL shader resource.

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