mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Simplified some compressed image parsing code.
--HG-- branch : minor
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#pragma once
|
||||
|
||||
// LOVE
|
||||
#include "image/CompressedFormatHandler.h"
|
||||
#include "image/FormatHandler.h"
|
||||
|
||||
// dds parser
|
||||
#include "ddsparse/ddsparse.h"
|
||||
@@ -39,16 +39,16 @@ namespace magpie
|
||||
/**
|
||||
* Interface between CompressedImageData and the ddsparse library.
|
||||
**/
|
||||
class DDSHandler : public CompressedFormatHandler
|
||||
class DDSHandler : public FormatHandler
|
||||
{
|
||||
public:
|
||||
|
||||
virtual ~DDSHandler() {}
|
||||
|
||||
// Implements CompressedFormatHandler.
|
||||
bool canParse(const Data *data) override;
|
||||
// Implements FormatHandler.
|
||||
bool canParseCompressed(Data *data) override;
|
||||
|
||||
StrongRef<CompressedMemory> parse(Data *filedata,
|
||||
StrongRef<CompressedMemory> parseCompressed(Data *filedata,
|
||||
std::vector<StrongRef<CompressedSlice>> &images,
|
||||
PixelFormat &format, bool &sRGB) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user