Shader

The Shader struct manages a OpenGL Shader instance The Shader can be loaded and compiled. But to use it, you must pass the Shader to the Program (see below).

Constructors

this
this(Type type, string filename = null)

CTor

Destructor

~this
~this()

DTor

Postblit

this(this)
@disable this(this)

Postblit is disabled

Copying this object is disabled.

Members

Enums

Type
enum Type

The supported Shader-Types

Functions

compile
bool compile()

Compiles the Shader

loadFromFile
void loadFromFile(string filename)

Load the Shader-Source from a file.

Properties

id
uint id [@property getter]

Returns the internal Shader ID

Meta

Authors

Randy Schuett (rswhite4@googlemail.com)