From 129f2e421e16bd008cdca8713cc91f67d103d94e Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 7 Jul 2023 23:05:14 +0200 Subject: Fix minor quality issues --- src/GFX/Image/RawImage.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/GFX/Image/RawImage.hpp') diff --git a/src/GFX/Image/RawImage.hpp b/src/GFX/Image/RawImage.hpp index 8a837e6..be3c83a 100644 --- a/src/GFX/Image/RawImage.hpp +++ b/src/GFX/Image/RawImage.hpp @@ -4,21 +4,17 @@ #include #include #include -#include "../../Util/Sampler.hpp" namespace MC::GFX::Image { class RawImage { public: - RawImage() : m_pixels(), m_width(0), m_height(0) {}; + RawImage() : m_width(0), m_height(0) {} - RawImage(uint32_t width, uint32_t height) - : m_pixels(), m_width(width), m_height(height) { + RawImage(uint32_t width, uint32_t height) : m_width(width), m_height(height) { m_pixels.reserve(width * height); } - RawImage(Util::Sampler<2, float>& sampler, uint32_t width, uint32_t height); - struct Pixel { uint8_t r, g, b; }; @@ -30,14 +26,11 @@ public: uint32_t width() const; uint32_t height() const; - uint8_t channels() const; std::string string() const; private: std::vector m_pixels; - uint32_t m_width, m_height; - uint8_t m_channels = 3; }; } -- cgit 1.4.1