Shader

Represents a 'shader' OpenGL object.

A shader is *part* of a program ought to be executed by the GPU. This class serves as a way to compile and use those program parts.

The "whole" Program is another OpenGL object constructed by assembling many Shader s.

Constructors

this
this(Shader.Type type, string sourcePath)

Constructs a new shader of the specified type, using as source code the file pointed to by sourcePath

Destructor

~this
~this()
Undocumented in source.

Members

Enums

Type
enum Type

Types of shaders there can be

Properties

type
Type type [@property getter]

Get the type of the shader

Meta