summaryrefslogtreecommitdiff
path: root/core/io/image_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/image_loader.h')
-rw-r--r--core/io/image_loader.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/core/io/image_loader.h b/core/io/image_loader.h
index 4de7706ab0..b70170303d 100644
--- a/core/io/image_loader.h
+++ b/core/io/image_loader.h
@@ -30,14 +30,13 @@
#define IMAGE_LOADER_H
#include "image.h"
-#include "ustring.h"
-#include "os/file_access.h"
#include "list.h"
+#include "os/file_access.h"
+#include "ustring.h"
/**
@author Juan Linietsky <reduzio@gmail.com>
*/
-
/**
* @class ImageScanLineLoader
* @author Juan Linietsky <reduzio@gmail.com>
@@ -46,21 +45,19 @@
*/
class ImageLoader;
-
/**
* @class ImageLoader
* Base Class and singleton for loading images from disk
* Can load images in one go, or by scanline
*/
-
class ImageFormatLoader {
-friend class ImageLoader;
-protected:
- virtual Error load_image(Image *p_image,FileAccess *p_fileaccess)=0;
- virtual void get_recognized_extensions(List<String> *p_extensions) const=0;
- bool recognize(const String& p_extension) const;
+ friend class ImageLoader;
+protected:
+ virtual Error load_image(Image *p_image, FileAccess *p_fileaccess) = 0;
+ virtual void get_recognized_extensions(List<String> *p_extensions) const = 0;
+ bool recognize(const String &p_extension) const;
public:
virtual ~ImageFormatLoader() {}
@@ -69,23 +66,19 @@ public:
class ImageLoader {
enum {
- MAX_LOADERS=8
+ MAX_LOADERS = 8
};
static ImageFormatLoader *loader[MAX_LOADERS];
static int loader_count;
protected:
-
-
public:
-
- static Error load_image(String p_file,Image *p_image, FileAccess *p_custom=NULL);
- static void get_recognized_extensions(List<String> *p_extensions) ;
- static bool recognize(const String& p_extension) ;
+ static Error load_image(String p_file, Image *p_image, FileAccess *p_custom = NULL);
+ static void get_recognized_extensions(List<String> *p_extensions);
+ static bool recognize(const String &p_extension);
static void add_image_format_loader(ImageFormatLoader *p_loader);
-
};
#endif