template<class Format> class Mosaic::Raster |
A class representing a single raster image.
A class representing a single raster image. This is used by Texture2D to hold the contents of a modifiable texture in memory. @todo make this into a template based on pixel format.
Raster (int width, int height, vector<ValueType> v) Create a new raster with the given content. | |
Raster (int width = 0, int height = 0) Create a new, empty raster initialized with zeroes | |
~Raster () Create an empty raster (size 0) | |
Raster | addBorder (int bwidth, ValueType color = Format::nullValue) Get a new raster which has the same content as this, but with an added border. |
ValueType& | operator() (int x, int y) Access (read&write) to a specific pixel in the raster |
Alphabetic index Hierarchy of classes