Data structure of a VDP2 color offset to be set in Offset A or Offset B.
The offset data that will be set is a signed 9 bit value per color channel. The valid range of inputs is -255 to +255. The sign determines whether the color offset is additive or subtractive. Values outside the range will be clamped on initialization. See SetColorOffsetA and SetColorOffsetB for more details.
#include <srl_vdp2.hpp>
Public Member Functions | |
| ColorOffset () | |
| Initialize with all channel offsets set to 0 (No Offset) | |
| ColorOffset (const SRL::Types::HighColor &col) | |
| initialize from an RGB555 source color | |
| ColorOffset (int16_t red, int16_t green, int16_t blue) | |
| initialize red green and blue channel offsets | |
| constexpr ColorOffset & | operator+= (const ColorOffset &col) |
| Add to this offset. | |
| constexpr ColorOffset & | operator-= (const ColorOffset &col) |
| Subtract from this offset. | |
| constexpr ColorOffset & | operator= (const ColorOffset &col) |
| Set this offset equal to another. | |
Public Attributes | |
| int16_t | Blue |
| Blue channel offset/. | |
| int16_t | Green |
| Green channel offset/. | |
| int16_t | Red |
| Red channel offset/. | |