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:
Alex Szpakowski
2013-03-04 13:58:14 -04:00
parent 4ae126ac44
commit 524368331d
4 changed files with 1 additions and 67 deletions
+1 -13
View File
@@ -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.
**/