Minor corrections in API doc

This commit is contained in:
Laurent Gomila 2012-04-20 18:04:01 +02:00
parent 459bc291f5
commit 3a64ca8943
2 changed files with 3 additions and 2 deletions

View File

@ -199,8 +199,8 @@ SFML_GRAPHICS_API Color& operator *=(Color& left, const Color& right);
/// ///
/// \code /// \code
/// sf::Color color(255, 0, 0); // red /// sf::Color color(255, 0, 0); // red
/// color.red = 0; // make it black /// color.r = 0; // make it black
/// color.blue = 128; // make it dark blue /// color.b = 128; // make it dark blue
/// \endcode /// \endcode
/// ///
/// The fourth component of colors, named "alpha", represents /// The fourth component of colors, named "alpha", represents

View File

@ -277,6 +277,7 @@ typedef Vector2<float> Vector2f;
/// the two most common specializations have special typedefs: /// the two most common specializations have special typedefs:
/// \li sf::Vector2<float> is sf::Vector2f /// \li sf::Vector2<float> is sf::Vector2f
/// \li sf::Vector2<int> is sf::Vector2i /// \li sf::Vector2<int> is sf::Vector2i
/// \li sf::Vector2<unsigned int> is sf::Vector2u
/// ///
/// The sf::Vector2 class has a small and simple interface, its x and y members /// The sf::Vector2 class has a small and simple interface, its x and y members
/// can be accessed directly (there's no accessor like SetX(), GetX()) and it /// can be accessed directly (there's no accessor like SetX(), GetX()) and it