A basic image with no compression or transparency. More...
#include <bitmap.hpp>
Public Member Functions | |
| Bitmap (const Size &size, color_t *const data) | |
| Construct a bitmap image from static data. | |
| void | renderAt (const Coords &coords, const shader_t &shader=0) const override |
| Display the bitmap directly onto the screen. | |
| Size | getSize () const override |
| Get the size of the bitmap. | |
| virtual color_t | averageColor () const |
| Get the average color of the bitmap. | |
Public Attributes | |
| Size | size |
| The size of the image in pixels. | |
| color_t *const | data |
| The list of pixels in the image. | |
A basic image with no compression or transparency.
Construct a bitmap image from static data.
| size | The size of the image. |
| data | The list of pixels in the image. |
|
virtual |
Get the average color of the bitmap.
Reimplemented in ui::TransparentBitmap.
|
overridevirtual |
|
overridevirtual |
Display the bitmap directly onto the screen.
| coords | The coordinates to render the first pixel [0,0] of the bitmap. |
| shader | An optional pixel shader to apply to each pixel of the bitmap. |
Implements ui::Renderable.
Reimplemented in ui::TransparentBitmap.