From 4a2bad92171ff8a9a248599f47087cfe39e93653 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 18 May 2008 09:21:20 +0000 Subject: OpenAL support --- src/render/image.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/render/image.h') 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: -- cgit v1.2.3