aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/Image.cpp')
-rw-r--r--src/graphics/Image.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/Image.cpp b/src/graphics/Image.cpp
index 2d9b58d..74a9866 100644
--- a/src/graphics/Image.cpp
+++ b/src/graphics/Image.cpp
@@ -34,6 +34,10 @@ namespace mgl {
return { image.width, image.height };
}
+ int Image::get_num_channels() const {
+ return mgl_image_get_num_channels(&image);
+ }
+
mgl_image* Image::internal_image() {
return ℑ
}