diff options
Diffstat (limited to 'src/graphics/Image.cpp')
-rw-r--r-- | src/graphics/Image.cpp | 4 |
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 ℑ } |