Clean image types
This commit is contained in:
parent
e7683cd94e
commit
c6d03f16d0
18 changed files with 169 additions and 107 deletions
|
@ -3,9 +3,9 @@
|
|||
#include <memory>
|
||||
|
||||
#include "INativeDrawingSurface.h"
|
||||
#include "Image.h"
|
||||
|
||||
class Grid;
|
||||
class Image;
|
||||
|
||||
class DrawingSurface
|
||||
{
|
||||
|
@ -26,12 +26,12 @@ public:
|
|||
|
||||
void Paint(Grid* grid);
|
||||
|
||||
Image* GetAsImage() const;
|
||||
Image<unsigned char>* GetAsImage() const;
|
||||
|
||||
private:
|
||||
|
||||
unsigned mWidth = 0;
|
||||
unsigned mHeight = 0;
|
||||
std::unique_ptr<Image> mImageBuffer;
|
||||
std::unique_ptr<Image<unsigned char> > mImageBuffer;
|
||||
std::unique_ptr<INativeDrawingSurface> mNativeDrawingSurface;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue