mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Passed BlendMode objects by const-reference
This commit is contained in:
parent
330db58bc1
commit
ec494babbe
@ -66,7 +66,7 @@ public :
|
||||
/// \param theBlendMode Blend mode to use
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderStates(BlendMode theBlendMode);
|
||||
RenderStates(const BlendMode& theBlendMode);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a default set of render states with a custom transform
|
||||
@ -101,7 +101,7 @@ public :
|
||||
/// \param theShader Shader to use
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderStates(BlendMode theBlendMode, const Transform& theTransform,
|
||||
RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
|
||||
const Texture* theTexture, const Shader* theShader);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -56,7 +56,7 @@ shader (NULL)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderStates::RenderStates(BlendMode theBlendMode) :
|
||||
RenderStates::RenderStates(const BlendMode& theBlendMode) :
|
||||
blendMode(theBlendMode),
|
||||
transform(),
|
||||
texture (NULL),
|
||||
@ -86,7 +86,7 @@ shader (theShader)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderStates::RenderStates(BlendMode theBlendMode, const Transform& theTransform,
|
||||
RenderStates::RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
|
||||
const Texture* theTexture, const Shader* theShader) :
|
||||
blendMode(theBlendMode),
|
||||
transform(theTransform),
|
||||
|
Loading…
Reference in New Issue
Block a user