[2608] | 1 | /*********************************************************************** |
---|
| 2 | Imageset |
---|
| 3 | ***********************************************************************/ |
---|
| 4 | class Imageset |
---|
| 5 | { |
---|
| 6 | Texture* getTexture() const; |
---|
| 7 | string getName() const; |
---|
| 8 | unsigned int getImageCount() const; |
---|
| 9 | bool isImageDefined(string name) const; |
---|
| 10 | const Image& getImage(string name) const; |
---|
| 11 | void undefineImage(string name); |
---|
| 12 | void undefineAllImages(); |
---|
| 13 | Size getImageSize(string name) const; |
---|
| 14 | float getImageWidth(string name) const; |
---|
| 15 | float getImageHeight(string name) const; |
---|
| 16 | Vector2 getImageOffset(string name) const; |
---|
| 17 | float getImageOffsetX(string name) const; |
---|
| 18 | float getImageOffsetY(string name) const; |
---|
| 19 | void defineImage(string name, const Vector2& pos, const Size& size, const Vector2& render_offset); |
---|
| 20 | void defineImage(string name, const Rect& rect, const Vector2& render_offset); |
---|
| 21 | bool isAutoScaled() const; |
---|
| 22 | void setAutoScalingEnabled(bool setting); |
---|
| 23 | Size getNativeResolution() const; |
---|
| 24 | void setNativeResolution(const Size& sz); |
---|
| 25 | void notifyScreenResolution(const Size& sz); |
---|
| 26 | |
---|
| 27 | ImageIterator getIterator() const; |
---|
| 28 | |
---|
| 29 | static void setDefaultResourceGroup(string resourceGroup); |
---|
| 30 | static string getDefaultResourceGroup(); |
---|
| 31 | }; |
---|