Shader

Shader class (vertex and fragment).

Constructors

this
this()

Default constructor.

this
this(sfShader* shader)
Undocumented in source.

Destructor

~this
~this()

Destructor.

Members

Enums

Type
enum Type

Types of shaders.

Functions

loadFromFile
bool loadFromFile(const(char)[] vertexShaderFilename, const(char)[] fragmentShaderFilename)

Load both the vertex and fragment shaders from files.

loadFromFile
bool loadFromFile(const(char)[] filename, Type type)

Load the vertex, geometry, or fragment shader from a file.

loadFromMemory
bool loadFromMemory(const(char)[] shader, Type type)

Load the vertex, geometry, or fragment shader from a source code in memory.

loadFromMemory
bool loadFromMemory(const(char)[] vertexShader, const(char)[] geometryShader, const(char)[] fragmentShader)

Load both the vertex and fragment shaders from source codes in memory.

Static variables

CurrentTexture
CurrentTextureType CurrentTexture;

Special type/value that can be passed to setParameter, and that represents the texture of the object being drawn.

Structs

CurrentTextureType
struct CurrentTextureType

Special type/value that can be passed to setParameter, and that represents the texture of the object being drawn.

Variables

sfPtr
sfShader* sfPtr;
Undocumented in source.

Meta