mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Changed the optional 'multiply alpha' boolean argument in love.graphics.setBlendMode to be an enum with constants 'alphamultiply' and 'premultiplied'.
The default value for the second argument of setBlendMode is 'alphamultiply'.
This commit is contained in:
@@ -243,12 +243,12 @@ public:
|
||||
/**
|
||||
* Sets the current blend mode.
|
||||
**/
|
||||
void setBlendMode(BlendMode mode, bool multiplyalpha);
|
||||
void setBlendMode(BlendMode mode, BlendAlpha alphamode);
|
||||
|
||||
/**
|
||||
* Gets the current blend mode.
|
||||
**/
|
||||
BlendMode getBlendMode(bool &multiplyalpha) const;
|
||||
BlendMode getBlendMode(BlendAlpha &alphamode) const;
|
||||
|
||||
/**
|
||||
* Sets the default filter for images, canvases, and fonts.
|
||||
@@ -478,7 +478,7 @@ private:
|
||||
Colorf backgroundColor = Colorf(0.0, 0.0, 0.0, 255.0);
|
||||
|
||||
BlendMode blendMode = BLEND_ALPHA;
|
||||
bool blendMultiplyAlpha = true;
|
||||
BlendAlpha blendAlphaMode = BLENDALPHA_MULTIPLY;
|
||||
|
||||
float lineWidth = 1.0f;
|
||||
LineStyle lineStyle = LINE_SMOOTH;
|
||||
|
||||
Reference in New Issue
Block a user