mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Minor corrections in API doc
This commit is contained in:
parent
8d0da1d9d6
commit
1a8488bd7b
@ -83,11 +83,11 @@ private :
|
|||||||
/// of derived classes to be drawn to a sf::RenderTarget.
|
/// of derived classes to be drawn to a sf::RenderTarget.
|
||||||
///
|
///
|
||||||
/// All you have to do in your derived class is to override the
|
/// All you have to do in your derived class is to override the
|
||||||
/// Draw virtual function.
|
/// draw virtual function.
|
||||||
///
|
///
|
||||||
/// Note that inheriting from sf::Drawable is not mandatory,
|
/// Note that inheriting from sf::Drawable is not mandatory,
|
||||||
/// but it allows this nice syntax "window.Draw(object)" rather
|
/// but it allows this nice syntax "window.draw(object)" rather
|
||||||
/// than "object.Draw(window)", which is more consistent with other
|
/// than "object.draw(window)", which is more consistent with other
|
||||||
/// SFML classes.
|
/// SFML classes.
|
||||||
///
|
///
|
||||||
/// Example:
|
/// Example:
|
||||||
@ -106,7 +106,7 @@ private :
|
|||||||
/// target.draw(m_sprite, states);
|
/// target.draw(m_sprite, states);
|
||||||
///
|
///
|
||||||
/// // ... or use the low-level API
|
/// // ... or use the low-level API
|
||||||
/// states.Texture = &m_texture;
|
/// states.texture = &m_texture;
|
||||||
/// target.draw(m_vertices, states);
|
/// target.draw(m_vertices, states);
|
||||||
///
|
///
|
||||||
/// // ... or draw with OpenGL directly
|
/// // ... or draw with OpenGL directly
|
||||||
|
Loading…
Reference in New Issue
Block a user