Shader.setParameter
- void setParameter(const(char)[] name, float x)
- void setParameter(const(char)[] name, float x, float y)
- void setParameter(const(char)[] name, float x, float y, float z)
- void setParameter(const(char)[] name, float x, float y, float z, float w)
- void setParameter(const(char)[] name, Vector2f vector)
- void setParameter(const(char)[] name, Vector3f vector)
- void setParameter(const(char)[] name, Color color)
- void setParameter(const(char)[] name, Transform transform)
- void setParameter(const(char)[] name, const(Texture) texture)
class Shader
deprecated
void
setParameter
- void setParameter(const(char)[] name, CurrentTextureType currentTexture)
dsfml graphics shader Shader
constructorsdestructorsenumsfunctionsstatic functionsstatic variablesstructsvariables
Change a texture parameter of the shader.
It is important to note that the texture parameter must remain alive as long as the shader uses it - no copoy is made internally.
To use the texture of the object being draw, which cannot be known in advance, you can pass the special value Shader.CurrentTexture.