Omitted "Blend" prefix for nested BlendMode enums
BlendMode::Factor instead of BlendMode::BlendFactor BlendMode::Equation instead of BlendMode::BlendEquation
This commit is contained in:
parent
05d196d86d
commit
75784dbb9a
3 changed files with 17 additions and 17 deletions
|
@ -46,7 +46,7 @@ struct SFML_GRAPHICS_API BlendMode
|
|||
/// \brief Enumeration of the blending factors
|
||||
///
|
||||
////////////////////////////////////////////////////////
|
||||
enum BlendFactor
|
||||
enum Factor
|
||||
{
|
||||
Zero, ///< (0,0,0,0)
|
||||
One, ///< (1,1,1,1)
|
||||
|
@ -65,7 +65,7 @@ struct SFML_GRAPHICS_API BlendMode
|
|||
/// \brief Enumeration of the blending equations
|
||||
///
|
||||
////////////////////////////////////////////////////////
|
||||
enum BlendEquation
|
||||
enum Equation
|
||||
{
|
||||
Add, ///< Pixel = Src * SrcFactor + Dst * DstFactor
|
||||
Subtract ///< Pixel = Src * SrcFactor - Dst * DstFactor
|
||||
|
@ -90,19 +90,19 @@ struct SFML_GRAPHICS_API BlendMode
|
|||
/// \param alphaBlendEquation Specifies how to combine the source and destination alphas.
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
BlendMode(BlendFactor colorSourceFactor, BlendFactor colorDestinationFactor,
|
||||
BlendEquation colorBlendEquation, BlendFactor alphaSourceFactor,
|
||||
BlendFactor alphaDestinationFactor, BlendEquation alphaBlendEquation);
|
||||
BlendMode(Factor colorSourceFactor, Factor colorDestinationFactor,
|
||||
Equation colorBlendEquation, Factor alphaSourceFactor,
|
||||
Factor alphaDestinationFactor, Equation alphaBlendEquation);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member Data
|
||||
////////////////////////////////////////////////////////////
|
||||
BlendFactor colorSrcFactor; ///< Source blending factor for the color channels
|
||||
BlendFactor colorDstFactor; ///< Destination blending factor for the color channels
|
||||
BlendEquation colorEquation; ///< Blending equation for the color channels
|
||||
BlendFactor alphaSrcFactor; ///< Source blending factor for the alpha channel
|
||||
BlendFactor alphaDstFactor; ///< Destination blending factor for the alpha channel
|
||||
BlendEquation alphaEquation; ///< Blending equation for the alpha channel
|
||||
Factor colorSrcFactor; ///< Source blending factor for the color channels
|
||||
Factor colorDstFactor; ///< Destination blending factor for the color channels
|
||||
Equation colorEquation; ///< Blending equation for the color channels
|
||||
Factor alphaSrcFactor; ///< Source blending factor for the alpha channel
|
||||
Factor alphaDstFactor; ///< Destination blending factor for the alpha channel
|
||||
Equation alphaEquation; ///< Blending equation for the alpha channel
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue