Use single Resource type for loading file or memory, JPEG file load improvements
This commit is contained in:
@@ -2,23 +2,25 @@
|
||||
#define LIME_GRAPHICS_JPEG_H
|
||||
|
||||
|
||||
#include <graphics/Image.h>
|
||||
#include <io/Resource.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Image;
|
||||
|
||||
class JPEG {
|
||||
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
static bool Decode (const char *path, Image *image);
|
||||
|
||||
|
||||
|
||||
static bool Decode (Resource *resource, Image *image);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
@@ -2,17 +2,19 @@
|
||||
#define LIME_GRAPHICS_PNG_H
|
||||
|
||||
|
||||
#include <graphics/Image.h>
|
||||
#include <io/Resource.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Image;
|
||||
|
||||
class PNG {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
static bool Decode (const char *path, Image *image);
|
||||
static bool Decode (Resource *resource, Image *image);
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user