mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user