diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-18 09:21:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-18 09:21:20 +0000 |
commit | 4a2bad92171ff8a9a248599f47087cfe39e93653 (patch) | |
tree | b8a4fe7f616b3e4f707d89a35fff5e8b5fdcfcc8 /src/render | |
parent | a185c11f2397c0296a4b62cc266b4fa00a63c1e2 (diff) |
OpenAL support
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/image.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/render/image.h b/src/render/image.h index 0c1069b..a129773 100644 --- a/src/render/image.h +++ b/src/render/image.h @@ -15,31 +15,31 @@ public: Image(unsigned int width, unsigned int height, unsigned int channels); ~Image(); - // pointer to the image data + /// pointer to the raw image data inline unsigned char *data() { return image_data; } - // index into the image data + /// index into the raw image data inline unsigned char *operator[](size_t index) { return &image_data[index]; } - // width of the image in pixels + /// width of the image in pixels inline unsigned int width() const { return image_width; } - // height of the image in pixels + /// height of the image in pixels inline unsigned int height() const { return image_height; } - // size of the image data in bytes + /// size of the image data in bytes inline size_t size() const { return ((size_t) image_width * (size_t) image_height * (size_t) image_channels); } - // number of channels 3 (RGB) or 4 (RGBA) + /// number of channels 3 (RGB) or 4 (RGBA) inline unsigned int channels() const { return image_channels; } - // set image data to zero + /// set image data to zero void clear(); - // swap the red and blue channel values of the image + /// swap the red and blue channel values of the image void swap_channels(); - // flip upside-down + /// flip upside-down void flip(); private: |