Changed primitive types to be grammatically correct.

This commit is contained in:
verrazano 2015-08-08 20:18:19 -05:00 committed by Lukas Dürrenberger
parent fb40e7e43f
commit afb8254b6d
4 changed files with 16 additions and 11 deletions

View file

@ -38,13 +38,18 @@ namespace sf
////////////////////////////////////////////////////////////
enum PrimitiveType
{
Points, ///< List of individual points
Lines, ///< List of individual lines
LinesStrip, ///< List of connected lines, a point uses the previous point to form a line
Triangles, ///< List of individual triangles
TrianglesStrip, ///< List of connected triangles, a point uses the two previous points to form a triangle
TrianglesFan, ///< List of connected triangles, a point uses the common center and the previous point to form a triangle
Quads ///< List of individual quads (deprecated, don't work with OpenGL ES)
Points, ///< List of individual points
Lines, ///< List of individual lines
LineStrip, ///< List of connected lines, a point uses the previous point to form a line
Triangles, ///< List of individual triangles
TriangleStrip, ///< List of connected triangles, a point uses the two previous points to form a triangle
TriangleFan, ///< List of connected triangles, a point uses the common center and the previous point to form a triangle
Quads, ///< List of individual quads (deprecated, don't work with OpenGL ES)
// Deprecated names
LinesStrip = LineStrip, /// \deprecated Use LineStrip instead
TrianglesStrip = TriangleStrip, /// \deprecated Use TriangleStrip instead
TrianglesFan = TriangleFan /// \deprecated Use TriangleFan instead
};
} // namespace sf

View file

@ -209,7 +209,7 @@ private:
///
/// Example:
/// \code
/// sf::VertexArray lines(sf::LinesStrip, 4);
/// sf::VertexArray lines(sf::LineStrip, 4);
/// lines[0].position = sf::Vector2f(10, 0);
/// lines[1].position = sf::Vector2f(20, 0);
/// lines[2].position = sf::Vector2f(30, 5);