diff options
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:  | 
