23 uint8_t r, uint8_t
g, uint8_t b, uint8_t alpha) = 0;
27 draw(output, pos, 255, 255, 255, alpha);
void draw(OutputSurface &output, gl::ivec2 pos, uint8_t alpha=255)
gl::ivec2 getSize() const
virtual void draw(OutputSurface &output, gl::ivec2 pos, uint8_t r, uint8_t g, uint8_t b, uint8_t alpha)=0
static void checkSize(gl::ivec2 size)
Performs a sanity check on image size.
virtual ~BaseImage()=default
A frame buffer where pixels can be written to.
This file implemented 3 utility functions: