mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
22 lines
395 B
C++
22 lines
395 B
C++
//
|
|
// Created by Stepan Usatiuk on 26.07.2025.
|
|
//
|
|
|
|
#ifndef PIXEL_HPP
|
|
#define PIXEL_HPP
|
|
|
|
class Pixel {
|
|
};
|
|
|
|
struct BwPixel : public Pixel {
|
|
bool on = false;
|
|
|
|
BwPixel() = default;
|
|
BwPixel(bool on) : on(on) {}
|
|
|
|
bool operator==(const BwPixel& other) const { return on == other.on; }
|
|
bool operator!=(const BwPixel& other) const { return !(*this == other); }
|
|
};
|
|
|
|
#endif //PIXEL_HPP
|