diff --git a/include/SFML/Graphics/Vertex.hpp b/include/SFML/Graphics/Vertex.hpp index 5b32fbfac..6649c0b81 100644 --- a/include/SFML/Graphics/Vertex.hpp +++ b/include/SFML/Graphics/Vertex.hpp @@ -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 diff --git a/include/SFML/Graphics/VertexArray.hpp b/include/SFML/Graphics/VertexArray.hpp index bc25563d8..1c459b8c3 100644 --- a/include/SFML/Graphics/VertexArray.hpp +++ b/include/SFML/Graphics/VertexArray.hpp @@ -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); diff --git a/include/SFML/Graphics/VertexBuffer.hpp b/include/SFML/Graphics/VertexBuffer.hpp index 318889b51..e94bd4026 100644 --- a/include/SFML/Graphics/VertexBuffer.hpp +++ b/include/SFML/Graphics/VertexBuffer.hpp @@ -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); /// ...