mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Removed love.graphics.setColorMode
- The "replace" color mode can easily be duplicated with love.graphics.setColor(255, 255, 255) - The current color mode has no effect when a shader is active - Color mode functionality can easily be replicated with shaders - OpenGL ES 2 (iOS, Android, etc) does not have the functions used by love.graphics.setColorMode
This commit is contained in:
@@ -63,9 +63,8 @@ struct DisplayState
|
||||
Color color;
|
||||
Color backgroundColor;
|
||||
|
||||
// Blend and color modes.
|
||||
// Blend mode.
|
||||
Graphics::BlendMode blendMode;
|
||||
Graphics::ColorMode colorMode;
|
||||
|
||||
// Line.
|
||||
Graphics::LineStyle lineStyle;
|
||||
@@ -91,7 +90,6 @@ struct DisplayState
|
||||
backgroundColor.b = 0;
|
||||
backgroundColor.a = 255;
|
||||
blendMode = Graphics::BLEND_ALPHA;
|
||||
colorMode = Graphics::COLOR_MODULATE;
|
||||
lineStyle = Graphics::LINE_SMOOTH;
|
||||
pointSize = 1.0f;
|
||||
pointStyle = Graphics::POINT_SMOOTH;
|
||||
@@ -306,11 +304,6 @@ public:
|
||||
**/
|
||||
void setBlendMode(BlendMode mode);
|
||||
|
||||
/**
|
||||
* Sets the current color mode.
|
||||
**/
|
||||
void setColorMode(ColorMode mode);
|
||||
|
||||
/**
|
||||
* Sets the current image filter.
|
||||
**/
|
||||
@@ -321,11 +314,6 @@ public:
|
||||
**/
|
||||
BlendMode getBlendMode() const;
|
||||
|
||||
/**
|
||||
* Gets the current color mode.
|
||||
**/
|
||||
ColorMode getColorMode() const;
|
||||
|
||||
/**
|
||||
* Gets the current image filter.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user