mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Merged default into minor
--HG-- branch : minor
This commit is contained in:
@@ -1112,6 +1112,27 @@ double Graphics::getSystemLimit(SystemLimit limittype) const
|
||||
return limit;
|
||||
}
|
||||
|
||||
bool Graphics::isSupported(Support feature) const
|
||||
{
|
||||
switch (feature)
|
||||
{
|
||||
case SUPPORT_HDR_CANVAS:
|
||||
return Canvas::isFormatSupported(Canvas::FORMAT_HDR);
|
||||
case SUPPORT_MULTI_CANVAS:
|
||||
return Canvas::isMultiCanvasSupported();
|
||||
case SUPPORT_DXT:
|
||||
return Image::hasCompressedTextureSupport(image::CompressedData::FORMAT_DXT5);
|
||||
case SUPPORT_BC5:
|
||||
return Image::hasCompressedTextureSupport(image::CompressedData::FORMAT_BC5);
|
||||
case SUPPORT_SRGB:
|
||||
// sRGB support for the screen is guaranteed if it's supported as a
|
||||
// Canvas format.
|
||||
return Canvas::isFormatSupported(Canvas::FORMAT_SRGB);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void Graphics::push()
|
||||
{
|
||||
if (userMatrices == matrixLimit)
|
||||
|
||||
Reference in New Issue
Block a user