Merge pull request #78 from BlaXpirit/feature/color_subtract

Added subtract function for Colors
This commit is contained in:
Laurent Gomila committed 2015-05-01 22:21:06 +02:00
commit 4069448128
2 files changed
+26

No files matched your search

+11
View File
@@ -109,6 +109,17 @@ CSFML_GRAPHICS_API sfUint32 sfColor_toInteger(sfColor color);
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfColor sfColor_add(sfColor color1, sfColor color2);
////////////////////////////////////////////////////////////
/// \brief Subtract two colors
///
/// \param color1 First color
/// \param color2 Second color
///
/// \return Component-wise saturated subtraction of the two colors
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfColor sfColor_subtract(sfColor color1, sfColor color2);
////////////////////////////////////////////////////////////
/// \brief Modulate two colors
///