Add geometry handling.

This commit is contained in:
jmsgrogan 2022-05-15 14:58:31 +01:00
parent 9c116b1efd
commit c1389218f2
37 changed files with 294 additions and 278 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#include "Color.h"
#include <memory>
#include <vector>
@ -16,6 +18,9 @@ public:
unsigned GetHeight() const;
unsigned GetBitDepth() const;
unsigned GetNumChannels() const;
void SetPixelValue(unsigned idx, unsigned jdx, const Color& color);
unsigned char GetByte(unsigned idx, unsigned jdx) const;
void SetData(const std::vector<unsigned char>& data);
@ -25,6 +30,8 @@ public:
void SetNumChannels(unsigned numChannels);
private:
void Initialize();
unsigned mWidth{1};
unsigned mHeight{1};
unsigned mBitDepth{8};