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:
Alex Szpakowski
2016-11-27 22:53:23 -04:00
parent cbba8c40a6
commit 0a3adc0839
50 changed files with 1042 additions and 1006 deletions
+7 -1
View File
@@ -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;