mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Move decoder-agnostic love.image code out of the magpie backend folder.
--HG-- branch : minor
This commit is contained in:
@@ -18,11 +18,10 @@
|
||||
* 3. This notice may not be removed or altered from any source distribution.
|
||||
**/
|
||||
|
||||
#ifndef LOVE_IMAGE_MAGPIE_DDS_HANDLER_H
|
||||
#define LOVE_IMAGE_MAGPIE_DDS_HANDLER_H
|
||||
#pragma once
|
||||
|
||||
// LOVE
|
||||
#include "CompressedFormatHandler.h"
|
||||
#include "image/CompressedFormatHandler.h"
|
||||
|
||||
// dds parser
|
||||
#include "ddsparse/ddsparse.h"
|
||||
@@ -49,8 +48,8 @@ public:
|
||||
// Implements CompressedFormatHandler.
|
||||
bool canParse(const filesystem::FileData *data) override;
|
||||
|
||||
StrongRef<CompressedImageData::Memory> parse(filesystem::FileData *filedata,
|
||||
std::vector<StrongRef<CompressedImageData::Slice>> &images,
|
||||
StrongRef<CompressedMemory> parse(filesystem::FileData *filedata,
|
||||
std::vector<StrongRef<CompressedSlice>> &images,
|
||||
PixelFormat &format, bool &sRGB) override;
|
||||
|
||||
private:
|
||||
@@ -62,5 +61,3 @@ private:
|
||||
} // magpie
|
||||
} // image
|
||||
} // love
|
||||
|
||||
#endif // LOVE_IMAGE_MAGPIE_DDS_HANDLER_H
|
||||
|
||||
Reference in New Issue
Block a user