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
+5
View File
@@ -24,6 +24,7 @@
// LOVE
#include "common/StringMap.h"
#include "common/math.h"
#include "common/pixelformat.h"
#include "Drawable.h"
#include "Quad.h"
@@ -79,6 +80,8 @@ public:
**/
virtual void drawq(Quad *quad, const Matrix4 &m) = 0;
PixelFormat getPixelFormat() const;
virtual int getWidth() const;
virtual int getHeight() const;
@@ -106,6 +109,8 @@ public:
protected:
PixelFormat format;
int width;
int height;