From 3a64ca8943970fafb5440eb142c5afdf3047ebc6 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 20 Apr 2012 18:04:01 +0200 Subject: [PATCH] Minor corrections in API doc --- include/SFML/Graphics/Color.hpp | 4 ++-- include/SFML/System/Vector2.hpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/SFML/Graphics/Color.hpp b/include/SFML/Graphics/Color.hpp index 3e6d7a5f..43f211ab 100644 --- a/include/SFML/Graphics/Color.hpp +++ b/include/SFML/Graphics/Color.hpp @@ -199,8 +199,8 @@ SFML_GRAPHICS_API Color& operator *=(Color& left, const Color& right); /// /// \code /// sf::Color color(255, 0, 0); // red -/// color.red = 0; // make it black -/// color.blue = 128; // make it dark blue +/// color.r = 0; // make it black +/// color.b = 128; // make it dark blue /// \endcode /// /// The fourth component of colors, named "alpha", represents diff --git a/include/SFML/System/Vector2.hpp b/include/SFML/System/Vector2.hpp index db20d60f..d838317e 100644 --- a/include/SFML/System/Vector2.hpp +++ b/include/SFML/System/Vector2.hpp @@ -277,6 +277,7 @@ typedef Vector2 Vector2f; /// the two most common specializations have special typedefs: /// \li sf::Vector2 is sf::Vector2f /// \li sf::Vector2 is sf::Vector2i +/// \li sf::Vector2 is sf::Vector2u /// /// 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