#include <spImageBufferUByte.hpp>
Public Member Functions | |
ImageBufferUByte () | |
ImageBufferUByte (const EPixelFormats Format, const dim::size2di &Size, u32 Depth=1, const u8 *InitBuffer=0) | |
ImageBufferUByte (const ImageBufferUByte *Original) | |
~ImageBufferUByte () | |
ImageBuffer * | copy () const |
void | copy (const ImageBuffer *Other) |
Copies the image bufer data into this image buffer. This can also be used to convert from UByte to Float. | |
void | setBuffer (const void *ImageBuffer, const dim::point2di &Pos, const dim::size2di &Size) |
Sets a new sub-buffer. | |
void | getBuffer (void *ImageBuffer, const dim::point2di &Pos, const dim::size2di &Size) const |
Gets a sub-buffer. | |
void | setColorKey (const video::color &Color, u8 Tolerance) |
sp::video::ImageBufferUByte::ImageBufferUByte | ( | ) |
sp::video::ImageBufferUByte::ImageBufferUByte | ( | const EPixelFormats | Format, | |
const dim::size2di & | Size, | |||
u32 | Depth = 1 , |
|||
const u8 * | InitBuffer = 0 | |||
) |
sp::video::ImageBufferUByte::ImageBufferUByte | ( | const ImageBufferUByte * | Original | ) |
sp::video::ImageBufferUByte::~ImageBufferUByte | ( | ) |
ImageBuffer * sp::video::ImageBufferUByte::copy | ( | ) | const [virtual] |
Creates a copy of this image buffer and returns the resulting pointer.
Implements sp::video::ImageBuffer.
void sp::video::ImageBufferUByte::copy | ( | const ImageBuffer * | Other | ) | [virtual] |
Copies the image bufer data into this image buffer. This can also be used to convert from UByte to Float.
Implements sp::video::ImageBuffer.
void sp::video::ImageBufferUByte::getBuffer | ( | void * | ImageBuffer, | |
const dim::point2di & | Pos, | |||
const dim::size2di & | Size | |||
) | const [virtual] |
Gets a sub-buffer.
Implements sp::video::ImageBuffer.
void sp::video::ImageBufferUByte::setBuffer | ( | const void * | ImageBuffer, | |
const dim::point2di & | Pos, | |||
const dim::size2di & | Size | |||
) | [virtual] |
Sets a new sub-buffer.
Implements sp::video::ImageBuffer.
void sp::video::ImageBufferUByte::setColorKey | ( | const video::color & | Color, | |
u8 | Tolerance | |||
) | [virtual] |
Sets the color key with the given tolerance.
Color,: | Color which is to be blended out. The alpha channel specifies the transparency of this color. e.g. when you have a mesh-wire-fence the color between the mesh-wire (normally black {0|0|0} for green {0|255|0}) shall be blended out the color key has to be (0, 0, 0, 0) for black or (0, 255, 0, 0) or green. |
Reimplemented from sp::video::ImageBuffer.