Lagrange
ImageBufferExperimental Struct Reference

Minimalistic image data structure that stores the raw image data. More...

#include <lagrange/scene/Scene.h>

Public Member Functions

size_t get_bits_per_element () const
 Get the size of an element in bits.
 

Public Attributes

size_t width = 0
 Image width.
 
size_t height = 0
 Image height.
 
size_t num_channels = 4
 Number of image channels (must be 1, 3, or 4).
 
AttributeValueType element_type
 The scalar type of the elements in the buffer.
 
std::vector< unsigned char > data
 Raw buffer of size (width * height * num_channels * num_bits_per_element / 8) bytes containing image data.
 

Detailed Description

Minimalistic image data structure that stores the raw image data.


The documentation for this struct was generated from the following files: