Removed love.graphics.setAlphaTest: incompatible with OpenGL ES 2+, core OpenGL 3+, and Direct3D 10+. Shaders can accomplish the same things and more.

This commit is contained in:
Alex Szpakowski
2013-08-01 12:55:46 -03:00
parent ce9d0be1ea
commit d7802b053b
6 changed files with 0 additions and 207 deletions
-32
View File
@@ -74,10 +74,6 @@ struct DisplayState
float pointSize;
Graphics::PointStyle pointStyle;
bool alphaTest;
Graphics::AlphaTestMode alphaTestMode;
unsigned char alphaTestRef;
// Scissor.
bool scissor;
OpenGL::Viewport scissorBox;
@@ -94,7 +90,6 @@ struct DisplayState
lineStyle = Graphics::LINE_SMOOTH;
pointSize = 1.0f;
pointStyle = Graphics::POINT_SMOOTH;
alphaTest = false;
scissor = false;
colorMask[0] = colorMask[1] = colorMask[2] = colorMask[3] = true;
}
@@ -189,33 +184,6 @@ public:
*/
void discardStencil();
/**
* Enables alpha testing for all following draw calls
* @param mode The alpha comparison mode used when performing the alpha test
* @param refalpha The reference alpha value used when perfoming the alpha test
*/
void setAlphaTest(Graphics::AlphaTestMode mode, unsigned char refalpha);
/**
* Disables alpha testing
*/
void setAlphaTest();
/**
* True if alpha testing is enabled
*/
bool isAlphaTestEnabled();
/**
* Gets the current alpha test comparison mode
*/
Graphics::AlphaTestMode getAlphaTestMode();
/**
* Gets the current alpha test reference alpha value (0-255)
*/
unsigned char getAlphaTestRef();
/**
* Gets the maximum supported width or height of Images and Canvases on this
* system.