EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EBGeometry::Render::Image Struct Reference

An image: width x height pixels, row by row from the top, each 0xRRGGBBAA. More...

#include <EBGeometry_Render.hpp>

Collaboration diagram for EBGeometry::Render::Image:
Collaboration graph
[legend]

Public Member Functions

uint32_t at (const uint32_t a_column, const uint32_t a_row) const noexcept
 One pixel.
 

Public Attributes

uint32_t m_width = 0
 Width in pixels.
 
uint32_t m_height = 0
 Height in pixels.
 
std::vector< uint32_t > m_pixels
 The pixels, row by row from the top.
 
std::vector< uint32_t > m_primitives
 With Settings::m_recordPrimitives, for each pixel the primitive its first ray hit (HitT::m_primitive), or 0xFFFFFFFF where it hit none (the floor, the background), for outlining a picked object; empty otherwise.
 

Detailed Description

An image: width x height pixels, row by row from the top, each 0xRRGGBBAA.

Member Function Documentation

◆ at()

uint32_t EBGeometry::Render::Image::at ( const uint32_t  a_column,
const uint32_t  a_row 
) const
inlinenoexcept

One pixel.

Parameters
[in]a_columnColumn, from the left.
[in]a_rowRow, from the top.
Returns
0xRRGGBBAA.

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