mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Update PrimitiveType values occurrences in documentation
because PrimitiveType is a scoped enumeration.
This commit is contained in:
parent
0d3c7f1c32
commit
a7f054712a
@ -135,7 +135,7 @@ public:
|
|||||||
/// };
|
/// };
|
||||||
///
|
///
|
||||||
/// // draw it
|
/// // draw it
|
||||||
/// window.draw(vertices, 6, sf::Triangles);
|
/// window.draw(vertices, 6, sf::PrimitiveType::Triangles);
|
||||||
/// \endcode
|
/// \endcode
|
||||||
///
|
///
|
||||||
/// Note: although texture coordinates are supposed to be an integer
|
/// Note: although texture coordinates are supposed to be an integer
|
||||||
|
@ -144,7 +144,7 @@ public:
|
|||||||
/// \li As points
|
/// \li As points
|
||||||
/// \li As lines
|
/// \li As lines
|
||||||
/// \li As triangles
|
/// \li As triangles
|
||||||
/// The default primitive type is sf::Points.
|
/// The default primitive type is sf::PrimitiveType::Points.
|
||||||
///
|
///
|
||||||
/// \param type Type of primitive
|
/// \param type Type of primitive
|
||||||
///
|
///
|
||||||
@ -202,7 +202,7 @@ private:
|
|||||||
///
|
///
|
||||||
/// Example:
|
/// Example:
|
||||||
/// \code
|
/// \code
|
||||||
/// sf::VertexArray lines(sf::LineStrip, 4);
|
/// sf::VertexArray lines(sf::PrimitiveType::LineStrip, 4);
|
||||||
/// lines[0].position = sf::Vector2f(10, 0);
|
/// lines[0].position = sf::Vector2f(10, 0);
|
||||||
/// lines[1].position = sf::Vector2f(20, 0);
|
/// lines[1].position = sf::Vector2f(20, 0);
|
||||||
/// lines[2].position = sf::Vector2f(30, 5);
|
/// lines[2].position = sf::Vector2f(30, 5);
|
||||||
|
@ -245,7 +245,7 @@ public:
|
|||||||
/// This function defines how the vertices must be interpreted
|
/// This function defines how the vertices must be interpreted
|
||||||
/// when it's time to draw them.
|
/// 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
|
/// \param type Type of primitive
|
||||||
///
|
///
|
||||||
@ -401,7 +401,7 @@ SFML_GRAPHICS_API void swap(VertexBuffer& left, VertexBuffer& right) noexcept;
|
|||||||
/// \code
|
/// \code
|
||||||
/// sf::Vertex vertices[15];
|
/// sf::Vertex vertices[15];
|
||||||
/// ...
|
/// ...
|
||||||
/// sf::VertexBuffer triangles(sf::Triangles);
|
/// sf::VertexBuffer triangles(sf::PrimitiveType::Triangles);
|
||||||
/// triangles.create(15);
|
/// triangles.create(15);
|
||||||
/// triangles.update(vertices);
|
/// triangles.update(vertices);
|
||||||
/// ...
|
/// ...
|
||||||
|
Loading…
Reference in New Issue
Block a user