X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FImage.hh;h=e958edcba2cccb0103b7616477097721d5a7e907;hb=81ff940d1bea07447f8218ab9a764fbf393431e8;hp=5f7c5a3205c746e8ca091ba6568ca7999561fef9;hpb=b357615aba1dbde81e3c6999366604e6001010a7;p=chaz%2Fyoink diff --git a/src/Moof/Image.hh b/src/Moof/Image.hh index 5f7c5a3..e958edc 100644 --- a/src/Moof/Image.hh +++ b/src/Moof/Image.hh @@ -38,10 +38,18 @@ namespace Mf { +class Image; +typedef boost::shared_ptr 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;