Added different rendering modes for the subpixel stuff.
This commit is contained in:
@ -3,9 +3,16 @@
|
||||
#include "config.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
enum SubpixelRenderingMode {
|
||||
SUBPIXEL_RENDERING_SET,
|
||||
SUBPIXEL_RENDERING_ADD,
|
||||
SUBPIXEL_RENDERING_RAISE
|
||||
};
|
||||
|
||||
class Window {
|
||||
private:
|
||||
void _circle_point(int x0, int y0, int x1, int y1, CRGB* color);
|
||||
void _subpixel_render(uint8_t x, uint8_t y, CRGB* color, SubpixelRenderingMode m);
|
||||
public:
|
||||
const uint8_t x, y;
|
||||
const uint8_t width, height;
|
||||
@ -19,7 +26,7 @@ public:
|
||||
void clear();
|
||||
void clear(CRGB* color);
|
||||
void setPixel(uint8_t x, uint8_t y, CRGB* color);
|
||||
void setSubPixel(accum88 x, accum88 y, CRGB* color);
|
||||
void setSubPixel(accum88 x, accum88 y, CRGB* color, SubpixelRenderingMode m = SUBPIXEL_RENDERING_ADD);
|
||||
void setPixelByIndex(uint16_t index, CRGB* color);
|
||||
void raisePixel(uint8_t x, uint8_t y, CRGB* color);
|
||||
void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, CRGB* color);
|
||||
|
Reference in New Issue
Block a user