Some minor corrections in API documentation and parameters names

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1525 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-06-11 21:52:51 +00:00
parent 1ee9965059
commit 280ce139d6
14 changed files with 35 additions and 35 deletions

View File

@ -4,7 +4,7 @@
/// \section welcome Welcome /// \section welcome Welcome
/// Welcome to the official SFML documentation. Here you will find a detailed /// Welcome to the official SFML documentation. Here you will find a detailed
/// view of all the SFML <a href="./annotated.htm">classes</a>, as well as source /// view of all the SFML <a href="./annotated.htm">classes</a>, as well as source
/// <a href="./files.htm">files</a>. <br/> /// <a href="./files.htm">files</a>. <br>
/// If you are looking for tutorials, you can visit the official website /// If you are looking for tutorials, you can visit the official website
/// at <a href="http://www.sfml-dev.org/tutorials/">www.sfml-dev.org</a>. /// at <a href="http://www.sfml-dev.org/tutorials/">www.sfml-dev.org</a>.
/// ///

View File

@ -38,12 +38,12 @@ namespace sf
class Renderer; class Renderer;
class RenderTarget; class RenderTarget;
////////////////////////////////////////////////////////////
/// \brief Available blending modes for drawable objects
///
////////////////////////////////////////////////////////////
namespace Blend namespace Blend
{ {
////////////////////////////////////////////////////////////
/// \brief Available blending modes for drawable objects
///
////////////////////////////////////////////////////////////
enum Mode enum Mode
{ {
Alpha, ///< Pixel = Src * Src.a + Dest * (1 - Src.a) Alpha, ///< Pixel = Src * Src.a + Dest * (1 - Src.a)

View File

@ -373,7 +373,7 @@ public :
/// \return Reference to self /// \return Reference to self
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Image& operator =(const Image& other); Image& operator =(const Image& right);
private : private :

View File

@ -249,6 +249,8 @@ public :
/// renderer.End(); /// renderer.End();
/// \endcode /// \endcode
/// ///
/// \param type Type of the primitives that are going to be rendered
///
/// \see End /// \see End
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -144,7 +144,7 @@ public :
/// \see SetTexture /// \see SetTexture
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void SetParameter(const std::string& Name, float x, float y); void SetParameter(const std::string& name, float x, float y);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change a 3-components vector parameter of the shader /// \brief Change a 3-components vector parameter of the shader
@ -166,7 +166,7 @@ public :
/// \see SetTexture /// \see SetTexture
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void SetParameter(const std::string& Name, float x, float y, float z); void SetParameter(const std::string& name, float x, float y, float z);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change a 4-components vector parameter of the shader /// \brief Change a 4-components vector parameter of the shader
@ -189,7 +189,7 @@ public :
/// \see SetTexture /// \see SetTexture
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void SetParameter(const std::string& Name, float x, float y, float z, float w); void SetParameter(const std::string& name, float x, float y, float z, float w);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change a 2-components vector parameter of the shader /// \brief Change a 2-components vector parameter of the shader

View File

@ -79,7 +79,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the number of points composing the shape /// \brief Get the number of points composing the shape
/// ///
/// \param Total number of points /// \return Total number of points
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
unsigned int GetPointsCount() const; unsigned int GetPointsCount() const;
@ -202,7 +202,7 @@ public :
/// \a index, if it is out of bounds (ie. in the range /// \a index, if it is out of bounds (ie. in the range
/// [0, GetPointscount() - 1]) the behaviour is undefined. /// [0, GetPointscount() - 1]) the behaviour is undefined.
/// ///
/// \param Index index of the point /// \param index Index of the point
/// ///
/// \return Color of the index-th point /// \return Color of the index-th point
/// ///
@ -246,10 +246,10 @@ public :
/// sf::Shape line = sf::Shape::Line(0, 0, 10, 20, 2.5f, sf::Color::Green); /// sf::Shape line = sf::Shape::Line(0, 0, 10, 20, 2.5f, sf::Color::Green);
/// \endcode /// \endcode
/// ///
/// \param x0 X coordinate of the start point /// \param p1x X coordinate of the start point
/// \param y0 Y coordinate of the start point /// \param p1y Y coordinate of the start point
/// \param x1 X coordinate of the end point /// \param p2x X coordinate of the end point
/// \param y1 Y coordinate of the end point /// \param p2y Y coordinate of the end point
/// \param thickness Thickness of the line /// \param thickness Thickness of the line
/// \param color Color of the shape's points /// \param color Color of the shape's points
/// \param outline Outline width /// \param outline Outline width

View File

@ -401,7 +401,7 @@ public :
/// Use this function with caution, the directory will /// Use this function with caution, the directory will
/// be removed permanently! /// be removed permanently!
/// ///
/// \param Name Name of the directory to remove /// \param name Name of the directory to remove
/// ///
/// \return Server response to the request /// \return Server response to the request
/// ///
@ -457,7 +457,6 @@ public :
/// \param remoteFile Filename of the distant file to download /// \param remoteFile Filename of the distant file to download
/// \param localPath Where to put to file on the local computer /// \param localPath Where to put to file on the local computer
/// \param mode Transfer mode /// \param mode Transfer mode
/// \param handler Object that will be notified of the download progress
/// ///
/// \return Server response to the request /// \return Server response to the request
/// ///
@ -480,7 +479,6 @@ public :
/// \param localFile Path of the local file to upload /// \param localFile Path of the local file to upload
/// \param remotePath Where to put to file on the server /// \param remotePath Where to put to file on the server
/// \param mode Transfer mode /// \param mode Transfer mode
/// \param handler Object that will be notified of the upload progress
/// ///
/// \return Server response to the request /// \return Server response to the request
/// ///

View File

@ -77,12 +77,12 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Assignment operator /// \brief Assignment operator
/// ///
/// \param other Instance to copy /// \param right Instance to assign
/// ///
/// \return Reference to self /// \return Reference to self
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Resource<T>& operator =(const Resource<T>& other); Resource<T>& operator =(const Resource<T>& right);
private : private :
@ -162,12 +162,12 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Assignment operator for a ResourcePtr parameter /// \brief Assignment operator for a ResourcePtr parameter
/// ///
/// \param other ResourcePtr to assign /// \param right Instance to assign
/// ///
/// \return Reference to self /// \return Reference to self
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
ResourcePtr<T>& operator =(const ResourcePtr<T>& other); ResourcePtr<T>& operator =(const ResourcePtr<T>& right);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Assignment operator for a raw pointer parameter /// \brief Assignment operator for a raw pointer parameter

View File

@ -63,12 +63,12 @@ ResourcePtr<T>::~ResourcePtr()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
template <typename T> template <typename T>
ResourcePtr<T>& ResourcePtr<T>::operator =(const ResourcePtr<T>& other) ResourcePtr<T>& ResourcePtr<T>::operator =(const ResourcePtr<T>& right)
{ {
if (myResource) if (myResource)
myResource->Disconnect(*this); myResource->Disconnect(*this);
myResource = other.myResource; myResource = right.myResource;
if (myResource) if (myResource)
myResource->Connect(*this); myResource->Connect(*this);

View File

@ -189,7 +189,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Copy constructor /// \brief Copy constructor
/// ///
/// \param other Instance to copy /// \param copy Instance to copy
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
String(const String& copy); String(const String& copy);

View File

@ -48,7 +48,7 @@ class SFML_API Thread : NonCopyable
{ {
public : public :
typedef void (*FuncType)(void*); // Type of functions that can be used as thread entry points typedef void (*FuncType)(void*); ///< Type of functions that can be used as thread entry points
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Construct the thread from a function pointer /// \brief Construct the thread from a function pointer

View File

@ -28,12 +28,12 @@
namespace sf namespace sf
{ {
////////////////////////////////////////////////////////////
/// \brief Enumeration of the window styles
///
////////////////////////////////////////////////////////////
namespace Style namespace Style
{ {
////////////////////////////////////////////////////////////
/// \brief Enumeration of the window styles
///
////////////////////////////////////////////////////////////
enum enum
{ {
None = 0, ///< No border / title bar (this flag and all others are mutually exclusive) None = 0, ///< No border / title bar (this flag and all others are mutually exclusive)

View File

@ -226,9 +226,9 @@ float SoundBuffer::GetDuration() const
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundBuffer& SoundBuffer::operator =(const SoundBuffer& other) SoundBuffer& SoundBuffer::operator =(const SoundBuffer& right)
{ {
SoundBuffer temp(other); SoundBuffer temp(right);
std::swap(mySamples, temp.mySamples); std::swap(mySamples, temp.mySamples);
std::swap(myBuffer, temp.myBuffer); std::swap(myBuffer, temp.myBuffer);

View File

@ -553,9 +553,9 @@ unsigned int Image::GetMaximumSize()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Image& Image::operator =(const Image& other) Image& Image::operator =(const Image& right)
{ {
Image temp(other); Image temp(right);
std::swap(myWidth, temp.myWidth); std::swap(myWidth, temp.myWidth);
std::swap(myHeight, temp.myHeight); std::swap(myHeight, temp.myHeight);