correct render of sprite lines!!
This commit is contained in:
@@ -59,13 +59,14 @@ namespace Render{
|
||||
friend class Page;
|
||||
|
||||
public:
|
||||
Mare(dim_t size);
|
||||
Mare(dim_t size, ScreenRotation rot);
|
||||
~Mare();
|
||||
|
||||
// getters, setters
|
||||
public:
|
||||
void setSize(const dim_t size);
|
||||
const dim_t getSize() {return _screenSize;};
|
||||
const dim_t getCenter();
|
||||
void setRotation(const ScreenRotation r);
|
||||
const ScreenRotation getRotation() {return _rotation;};
|
||||
void setCurrentPage(const uint8_t p);
|
||||
@@ -91,16 +92,13 @@ namespace Render{
|
||||
//render
|
||||
private:
|
||||
void clearBuffer(uint8_t* buffer, uint16_t len, Color col);
|
||||
bool applyRotation(uint16_t* x, uint16_t* y);
|
||||
void visitDrawables(Drawable* parent) {};
|
||||
|
||||
public:
|
||||
void render();
|
||||
void setPixel(uint8_t* img, uint16_t x, uint16_t y, bool value);
|
||||
void clearScreen() {
|
||||
EPD_2IN9_V2_Clear();
|
||||
clearBuffer(_screenBufferBackground, _bufferDim, Color::White);
|
||||
EPD_2IN9_V2_Display(_screenBufferBackground);
|
||||
}
|
||||
void clearScreen();
|
||||
|
||||
// members
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user