mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user