Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/Imageset.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 16 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[2608]1/***********************************************************************
2        Imageset
3***********************************************************************/
4class 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};
Note: See TracBrowser for help on using the repository browser.