![]() |
VR-Forces Developer's Guide
|
Simple pixel buffer for rasterized image data.
Stores width, height, channel count, and a contiguous RGBA pixel buffer. Constructing with dimensions pre-allocates the pixel vector to the required size (zero-filled).
my prefix for backwards compatibility with existing callers that referenced the original definition in DtMilStdTypes.h. Public Member Functions | |
| DtBitmapData () | |
| DtBitmapData (int w, int h, int ch=4) | |
Public Attributes | |
| std::vector< uint8_t > | pixels |
| int | width |
| int | height |
| int | channels |
|
inline |
Default constructor. Initializes to zero-size with 4 channels.
Construct with dimensions, pre-allocating the pixel buffer.
| w | Width in pixels. |
| h | Height in pixels. |
| ch | Channels (bytes per pixel). Defaults to 4 (RGBA). |
| std::vector<uint8_t> makVrv::DtBitmapData::pixels |
Pixel buffer in RGBA format.
| int makVrv::DtBitmapData::width |
Image width in pixels.
| int makVrv::DtBitmapData::height |
Image height in pixels.
| int makVrv::DtBitmapData::channels |
Bytes per pixel; typically 4 (RGBA).