diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-26 17:42:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-26 17:42:30 +0000 |
commit | cc0a4412a4ac7f1f78ef7e644a0c06c6dd6dd129 (patch) | |
tree | 27271e45ca42c1039d149ab30637fe4fb08eb732 /src/render/image.h | |
parent | 02e623574c4c12c40a0757ed934a93353f34a653 (diff) |
improved dust rendering
Diffstat (limited to 'src/render/image.h')
-rw-r--r-- | src/render/image.h | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |