mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Unify pixel format enums for ImageData, CompressedImageData, and Canvas into a single PixelFormat enum.
Replace love.graphics.getRawImageFormats and love.graphics.getCompressedImageFormats with love.graphics.getImageFormats. --HG-- branch : minor
This commit is contained in:
@@ -28,7 +28,8 @@ namespace graphics
|
||||
Texture::Filter Texture::defaultFilter;
|
||||
|
||||
Texture::Texture()
|
||||
: width(0)
|
||||
: format(PIXELFORMAT_UNKNOWN)
|
||||
, width(0)
|
||||
, height(0)
|
||||
, filter(getDefaultFilter())
|
||||
, wrap()
|
||||
@@ -40,6 +41,11 @@ Texture::~Texture()
|
||||
{
|
||||
}
|
||||
|
||||
PixelFormat Texture::getPixelFormat() const
|
||||
{
|
||||
return format;
|
||||
}
|
||||
|
||||
int Texture::getWidth() const
|
||||
{
|
||||
return width;
|
||||
|
||||
Reference in New Issue
Block a user