GLShader

OpenGL Shader wrapper.

Constructors

this
this(GLenum shaderType)

Creates a shader devoid of source code.

this
this(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.

logger
void logger(Logger l)

Sets a logger for the program. That allows additional output besides error reporting.

Variables

_shader
GLuint _shader;
Undocumented in source.

Meta