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
-22
View File
@@ -79,16 +79,6 @@ bool Graphics::getConstant(PointStyle in, const char *&out)
return pointStyles.find(in, out);
}
bool Graphics::getConstant(const char *in, AlphaTestMode &out)
{
return alphaTests.find(in, out);
}
bool Graphics::getConstant(AlphaTestMode in, const char *&out)
{
return alphaTests.find(in, out);
}
bool Graphics::getConstant(const char *in, Support &out)
{
return support.find(in, out);
@@ -155,18 +145,6 @@ StringMap<Graphics::PointStyle, Graphics::POINT_MAX_ENUM>::Entry Graphics::point
StringMap<Graphics::PointStyle, Graphics::POINT_MAX_ENUM> Graphics::pointStyles(Graphics::pointStyleEntries, sizeof(Graphics::pointStyleEntries));
StringMap<Graphics::AlphaTestMode, Graphics::ALPHATEST_MAX_ENUM>::Entry Graphics::alphaTestEntries[] =
{
{ "<", Graphics::ALPHATEST_LESS },
{ "<=", Graphics::ALPHATEST_LEQUAL },
{ "==", Graphics::ALPHATEST_EQUAL },
{ "~=", Graphics::ALPHATEST_NOTEQUAL },
{ ">=", Graphics::ALPHATEST_GEQUAL },
{ ">", Graphics::ALPHATEST_GREATER },
};
StringMap<Graphics::AlphaTestMode, Graphics::ALPHATEST_MAX_ENUM> Graphics::alphaTests(Graphics::alphaTestEntries, sizeof(Graphics::alphaTestEntries));
StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::supportEntries[] =
{
{ "canvas", Graphics::SUPPORT_CANVAS },