Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor updates in the documentation of sf::Shader

  • Loading branch information...
commit 765669301368ace007171539bdc692104bae9e4f 1 parent 226be57
@LaurentGomila LaurentGomila authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 include/SFML/Graphics/Shader.hpp
View
10 include/SFML/Graphics/Shader.hpp
@@ -547,7 +547,7 @@ private :
///
/// A sf::Shader can be composed of either a vertex shader
/// alone, a fragment shader alone, or both combined
-/// (see the variants of the Load functions).
+/// (see the variants of the load functions).
///
/// Shaders are written in GLSL, which is a C-like
/// language dedicated to OpenGL shaders. You'll probably
@@ -556,17 +556,19 @@ private :
///
/// Like any C/C++ program, a shader has its own variables
/// that you can set from your C++ application. sf::Shader
-/// handles 4 different types of variables:
+/// handles 5 different types of variables:
/// \li floats
/// \li vectors (2, 3 or 4 components)
+/// \li colors
/// \li textures
/// \li transforms (matrices)
///
/// The value of the variables can be changed at any time
-/// with either the various overloads of the setParameter function:
+/// with the various overloads of the setParameter function:
/// \code
/// shader.setParameter("offset", 2.f);
-/// shader.setParameter("color", 0.5f, 0.8f, 0.3f);
+/// shader.setParameter("point", 0.5f, 0.8f, 0.3f);
+/// shader.setParameter("color", sf::Color(128, 50, 255));
/// shader.setParameter("matrix", transform); // transform is a sf::Transform
/// shader.setParameter("overlay", texture); // texture is a sf::Texture
/// shader.setParameter("texture", sf::Shader::CurrentTexture);
Please sign in to comment.
Something went wrong with that request. Please try again.