mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user