mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Removed an unused graphics Image method
--HG-- branch : image-CompressedData
This commit is contained in:
@@ -40,16 +40,20 @@ CompressedData::~CompressedData()
|
||||
|
||||
void CompressedData::load(love::filesystem::FileData *data)
|
||||
{
|
||||
std::vector<SubImage> parsedImages;
|
||||
// SubImage vector will be populated by a parser.
|
||||
std::vector<SubImage> parsedimages;
|
||||
TextureType textype = TYPE_UNKNOWN;
|
||||
|
||||
if (ddsHandler::canParse(data))
|
||||
textype = ddsHandler::parse(data, parsedImages);
|
||||
textype = ddsHandler::parse(data, parsedimages);
|
||||
|
||||
if (textype == TYPE_UNKNOWN)
|
||||
throw (love::Exception("Could not parse compressed data: Unknown format."));
|
||||
throw love::Exception("Could not parse compressed data: Unknown format.");
|
||||
|
||||
dataImages = parsedImages;
|
||||
if (parsedimages.size() == 0)
|
||||
throw love::Exception("Could not parse compressed data: No valid data?");
|
||||
|
||||
dataImages = parsedimages;
|
||||
type = textype;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define LOVE_IMAGE_MAGPIE_COMPRESSED_DATA_H
|
||||
|
||||
// LOVE
|
||||
#include "filesystem/File.h"
|
||||
#include "filesystem/FileData.h"
|
||||
#include "image/CompressedData.h"
|
||||
|
||||
namespace love
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// LOVE
|
||||
#include "common/Exception.h"
|
||||
#include "common/math.h"
|
||||
#include "filesystem/File.h"
|
||||
#include "thread/threads.h"
|
||||
|
||||
// DevIL
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define LOVE_IMAGE_MAGPIE_DEVIL_HANDLER_H
|
||||
|
||||
// LOVE
|
||||
#include "filesystem/File.h"
|
||||
#include "filesystem/FileData.h"
|
||||
#include "FormatHandler.h"
|
||||
|
||||
namespace love
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
// LOVE
|
||||
#include "image/ImageData.h"
|
||||
#include "filesystem/File.h"
|
||||
#include "filesystem/FileData.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define LOVE_IMAGE_MAGPIE_DDS_HANDLER_H
|
||||
|
||||
// LOVE
|
||||
#include "filesystem/File.h"
|
||||
#include "filesystem/FileData.h"
|
||||
#include "image/CompressedData.h"
|
||||
|
||||
// dds parser
|
||||
@@ -55,8 +55,8 @@ public:
|
||||
/**
|
||||
* Parses Compressed image data into a list of sub-images.
|
||||
* @param[in] data The data to parse.
|
||||
* @param[out] images The list of sub-images (including byte data for each),
|
||||
* created by the parser.
|
||||
* @param[out] images The list of sub-images (including byte data for each)
|
||||
* parsed from the file data.
|
||||
* @return The type of CompressedData.
|
||||
**/
|
||||
static CompressedData::TextureType parse(filesystem::FileData *data, std::vector<CompressedData::SubImage> &images);
|
||||
|
||||
Reference in New Issue
Block a user