Shader.bind

Bind a shader for rendering.

This function is not part of the graphics API, it mustn't be used when drawing SFML entities. It must be used only if you mix Shader with OpenGL code.

class Shader
static
void
bind

Parameters

shader
Type: Shader

Shader to bind. Can be null to use no shader.

Meta