mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Move some Canvas code to Texture, devirtualize Texture::draw.
This commit is contained in:
@@ -132,6 +132,16 @@ bool isPixelFormatDepth(PixelFormat format);
|
||||
**/
|
||||
bool isPixelFormatStencil(PixelFormat format);
|
||||
|
||||
/**
|
||||
* Gets the sRGB version of a linear pixel format, if applicable.
|
||||
**/
|
||||
PixelFormat getSRGBPixelFormat(PixelFormat format);
|
||||
|
||||
/**
|
||||
* Gets the linear version of a sRGB pixel format, if applicable.
|
||||
**/
|
||||
PixelFormat getLinearPixelFormat(PixelFormat format);
|
||||
|
||||
/**
|
||||
* Gets the size in bytes of the specified pixel format.
|
||||
* NOTE: Currently returns 0 for compressed formats.
|
||||
|
||||
Reference in New Issue
Block a user