]>
Dogcows Code - chaz/yoink/blob - src/Moof/Image.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_IMAGE_HH_
13 #define _MOOF_IMAGE_HH_
15 #include <boost/shared_ptr.hpp>
17 #include <Moof/OpenGL.hh>
18 #include <Moof/Resource.hh>
25 typedef boost::shared_ptr
<Image
> ImageP
;
27 class Image
: public Resource
31 static ImageP
alloc(const std::string
& name
)
33 return ImageP(new Image(name
));
36 explicit Image(const std::string
& name
);
41 int getHeight() const;
43 unsigned getDepth() const;
44 unsigned getPitch() const;
45 GLuint
getMode() const;
47 std::string
getComment() const;
49 const char* getPixels() const;
54 void setAsIcon() const;
56 static std::string
getPath(const std::string
& name
);
61 boost::shared_ptr
<Impl
> mImpl
;
67 #endif // _MOOF_IMAGE_HH_
This page took 0.034619 seconds and 4 git commands to generate.