Update PrimitiveType values occurrences in documentation

because PrimitiveType is a scoped enumeration.
This commit is contained in:
kimci86 2024-01-27 15:37:10 +01:00 committed by Chris Thrasher
parent 0d3c7f1c32
commit a7f054712a
3 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ public:
/// };
///
/// // draw it
/// window.draw(vertices, 6, sf::Triangles);
/// window.draw(vertices, 6, sf::PrimitiveType::Triangles);
/// \endcode
///
/// Note: although texture coordinates are supposed to be an integer

View File

@ -144,7 +144,7 @@ public:
/// \li As points
/// \li As lines
/// \li As triangles
/// The default primitive type is sf::Points.
/// The default primitive type is sf::PrimitiveType::Points.
///
/// \param type Type of primitive
///
@ -202,7 +202,7 @@ private:
///
/// Example:
/// \code
/// sf::VertexArray lines(sf::LineStrip, 4);
/// sf::VertexArray lines(sf::PrimitiveType::LineStrip, 4);
/// lines[0].position = sf::Vector2f(10, 0);
/// lines[1].position = sf::Vector2f(20, 0);
/// lines[2].position = sf::Vector2f(30, 5);

View File

@ -245,7 +245,7 @@ public:
/// This function defines how the vertices must be interpreted
/// when it's time to draw them.
///
/// The default primitive type is sf::Points.
/// The default primitive type is sf::PrimitiveType::Points.
///
/// \param type Type of primitive
///
@ -401,7 +401,7 @@ SFML_GRAPHICS_API void swap(VertexBuffer& left, VertexBuffer& right) noexcept;
/// \code
/// sf::Vertex vertices[15];
/// ...
/// sf::VertexBuffer triangles(sf::Triangles);
/// sf::VertexBuffer triangles(sf::PrimitiveType::Triangles);
/// triangles.create(15);
/// triangles.update(vertices);
/// ...