Add geometry handling.
This commit is contained in:
parent
9c116b1efd
commit
c1389218f2
37 changed files with 294 additions and 278 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue