]>
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_
17 * Defines classes for loading and manipulating images.
20 #include <boost/shared_ptr.hpp>
22 #include <moof/opengl.hh>
23 #include <moof/resource.hh>
30 typedef boost::shared_ptr
<image
> image_ptr
;
32 class image
: public resource
36 static image_ptr
alloc(const std::string
& name
)
38 return image_ptr(new image(name
));
41 explicit image(const std::string
& name
);
43 bool is_valid() const;
48 unsigned depth() const;
49 unsigned pitch() const;
52 std::string
comment() const;
54 const char* pixels() const;
59 void set_as_icon() const;
64 static FILE* open_file(std::string
& name
);
67 boost::shared_ptr
<impl
> impl_
;
73 #endif // _MOOF_IMAGE_HH_
This page took 0.037454 seconds and 4 git commands to generate.