mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +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:
@@ -123,6 +123,13 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct TextureFormat
|
||||
{
|
||||
GLenum internalformat = 0;
|
||||
GLenum externalformat = 0;
|
||||
GLenum type = 0;
|
||||
};
|
||||
|
||||
struct
|
||||
{
|
||||
std::vector<Matrix4> transform;
|
||||
@@ -427,6 +434,10 @@ public:
|
||||
static GLenum getGLBufferType(BufferType type);
|
||||
static GLint getGLWrapMode(Texture::WrapMode wmode);
|
||||
|
||||
static TextureFormat convertPixelFormat(PixelFormat pixelformat, bool renderbuffer, bool &isSRGB);
|
||||
static bool isPixelFormatSupported(PixelFormat pixelformat, bool rendertarget, bool isSRGB);
|
||||
static bool hasTextureFilteringSupport(PixelFormat pixelformat);
|
||||
|
||||
static const char *errorString(GLenum errorcode);
|
||||
static const char *framebufferStatusString(GLenum status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user