VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBitmapData.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <cstdint>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
32  {
33  std::vector<uint8_t> pixels;
34  int width;
35  int height;
36  int channels;
37 
40  : width(0)
41  , height(0)
42  , channels(4)
43  { }
44 
50  DtBitmapData( int w, int h, int ch = 4 )
51  : pixels( w * h * ch, 0 )
52  , width( w )
53  , height( h )
54  , channels( ch )
55  { }
56  };
57 
58 } // namespace makVrv
Simple pixel buffer for rasterized image data.
Definition: DtBitmapData.h:31
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
int height
Image height in pixels.
Definition: DtBitmapData.h:35
DtBitmapData(int w, int h, int ch=4)
Construct with dimensions, pre-allocating the pixel buffer.
Definition: DtBitmapData.h:50
DtBitmapData()
Default constructor. Initializes to zero-size with 4 channels.
Definition: DtBitmapData.h:39
std::vector< uint8_t > pixels
Pixel buffer in RGBA format.
Definition: DtBitmapData.h:33
int channels
Bytes per pixel; typically 4 (RGBA).
Definition: DtBitmapData.h:36
int width
Image width in pixels.
Definition: DtBitmapData.h:34

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)