diff options
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(); |