From cc0a4412a4ac7f1f78ef7e644a0c06c6dd6dd129 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 26 Aug 2008 17:42:30 +0000 Subject: improved dust rendering --- src/render/image.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/image.h') diff --git a/src/render/image.h b/src/render/image.h index c9cc029..3c82792 100644 --- a/src/render/image.h +++ b/src/render/image.h @@ -35,6 +35,9 @@ public: /// number of channels 3 (RGB) or 4 (RGBA) inline unsigned int channels() const { return image_channels; } + /// bits per pixel + inline unsigned int bpp() const { return (image_channels * 8); } + /// set image data to zero void clear(); -- cgit v1.2.3