Use struct for data type with exclusively public contents

This commit is contained in:
Chris Thrasher 2024-01-24 20:14:48 -07:00
parent 5dfa3f7858
commit b234ede61e
2 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@
namespace sf namespace sf
{ {
class RenderTarget; class RenderTarget;
class RenderStates; struct RenderStates;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Abstract base class for objects that can be drawn /// \brief Abstract base class for objects that can be drawn

View File

@ -42,9 +42,8 @@ class Texture;
/// \brief Define the states used for drawing to a RenderTarget /// \brief Define the states used for drawing to a RenderTarget
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RenderStates struct SFML_GRAPHICS_API RenderStates
{ {
public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
/// ///