summaryrefslogtreecommitdiff
path: root/wx+/image_resources.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/image_resources.h')
-rw-r--r--wx+/image_resources.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/wx+/image_resources.h b/wx+/image_resources.h
index b996d977..2ac6f308 100644
--- a/wx+/image_resources.h
+++ b/wx+/image_resources.h
@@ -7,7 +7,6 @@
#ifndef IMAGE_RESOURCES_H_8740257825342532457
#define IMAGE_RESOURCES_H_8740257825342532457
-#include <wx/bitmap.h>
#include <wx/animate.h>
#include <zen/zstring.h>
@@ -15,11 +14,11 @@
namespace zen
{
//pass resources .zip file at application startup
-void initResourceImages(const Zstring& zipPath); //throw FileError
-void cleanupResourceImages();
+void imageResourcesInit(const Zstring& zipPath); //throw FileError
+void ImageResourcesCleanup();
-const wxBitmap& getResourceImage (const std::string& name);
-const wxAnimation& getResourceAnimation(const std::string& name);
+const wxImage& loadImage(const std::string& name, int maxWidth /*optional*/, int maxHeight /*optional*/);
+const wxImage& loadImage(const std::string& name, int maxSize = -1);
}
#endif //IMAGE_RESOURCES_H_8740257825342532457
bgstack15