]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Image.hh
library class revamped as manager, goodbye tilemap
[chaz/yoink] / src / Moof / Image.hh
index 5f7c5a3205c746e8ca091ba6568ca7999561fef9..e958edcba2cccb0103b7616477097721d5a7e907 100644 (file)
 namespace Mf {
 
 
+class Image;
+typedef boost::shared_ptr<Image> ImageP;
+
 class Image : public Resource
 {
 public:
 
+       static ImageP alloc(const std::string& name)
+       {
+               return ImageP(new Image(name));
+       }
+
        explicit Image(const std::string& name);
 
        bool isValid() const;
@@ -51,7 +59,7 @@ public:
 
        unsigned getDepth() const;
        unsigned getPitch() const;
-       GLuint getColorMode() const;
+       GLuint getMode() const;
 
        std::string getComment() const;
 
This page took 0.016988 seconds and 4 git commands to generate.