From 6ed978051668c08f5a957c97570f364dd580c807 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 21 Oct 2022 01:03:18 +0200 Subject: Namespace and Folder refactor --- src/Image/RawImage.hpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/Image/RawImage.hpp (limited to 'src/Image/RawImage.hpp') diff --git a/src/Image/RawImage.hpp b/src/Image/RawImage.hpp deleted file mode 100644 index 6c4b122..0000000 --- a/src/Image/RawImage.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace MC::Image { - -class RawImage { -public: - RawImage() : m_pixels(), m_width(0), m_height(0), m_channels(0) {}; - - explicit RawImage(size_t pixel_count, uint32_t width, uint32_t height, uint8_t channels) - : m_pixels(), m_width(width), m_height(height), m_channels(channels) { - m_pixels.reserve(pixel_count); - } - - struct Pixel { - uint8_t r, g, b; - }; - - void add(Pixel pixel); - - size_t size() const; - uint8_t* raw() const; - - uint32_t width() const; - uint32_t height() const; - uint8_t channels() const; -private: - std::vector m_pixels; - - uint32_t m_width, m_height; - uint8_t m_channels; -}; - -} -- cgit 1.4.1