Texture:isFormatLinear

Available since LÖVE 12.0
It has been moved from Image:isFormatLinear.

Gets whether the Texture was created with the linear (non-gamma corrected) flag set to true or with a non-sRGB PixelFormat.

This method always returns false when gamma-correct rendering is not enabled.

Function

Synopsis

linear = Texture:isFormatLinear( )

Arguments

None.

Returns

boolean linear
Whether the Texture's internal pixel format is linear (not gamma corrected), when gamma-correct rendering is enabled.

See Also

Other Languages