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
|
/// \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
|
/// \brief Construct a default set of render states with a custom transform
|
||||||
@ -101,7 +101,7 @@ public :
|
|||||||
/// \param theShader Shader to use
|
/// \param theShader Shader to use
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
RenderStates(BlendMode theBlendMode, const Transform& theTransform,
|
RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
|
||||||
const Texture* theTexture, const Shader* theShader);
|
const Texture* theTexture, const Shader* theShader);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -56,7 +56,7 @@ shader (NULL)
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
RenderStates::RenderStates(BlendMode theBlendMode) :
|
RenderStates::RenderStates(const BlendMode& theBlendMode) :
|
||||||
blendMode(theBlendMode),
|
blendMode(theBlendMode),
|
||||||
transform(),
|
transform(),
|
||||||
texture (NULL),
|
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) :
|
const Texture* theTexture, const Shader* theShader) :
|
||||||
blendMode(theBlendMode),
|
blendMode(theBlendMode),
|
||||||
transform(theTransform),
|
transform(theTransform),
|
||||||
|
Loading…
Reference in New Issue
Block a user