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

A pixel as a render stores it: PixelResult without the object, which is stored apart and only when asked for (Settings::m_recordPrimitives), so that a frame writes and copies 8 bytes per pixel. More...

#include <EBGeometry_Render.hpp>

Static Public Member Functions

static StoredPixel of (const PixelResult &a_result) noexcept
 The stored part of a pixel's result.
 

Public Attributes

uint32_t m_rgba = 0
 The pixel, 0xRRGGBBAA.
 
uint8_t m_hits = 0
 Of the pixel's rays, those that hit the shape.
 
uint8_t m_insideHits = 0
 Of the pixel's rays, those that hit it from inside.
 
uint8_t m_unresolved = 0
 Of the pixel's rays, those that were unresolved.
 
uint8_t m_cameraInside = 0
 Pixel 0 only: whether the eye is inside the solid.
 

Detailed Description

A pixel as a render stores it: PixelResult without the object, which is stored apart and only when asked for (Settings::m_recordPrimitives), so that a frame writes and copies 8 bytes per pixel.

Internal helper; not part of the public API.

Member Function Documentation

◆ of()

static StoredPixel EBGeometry::Render::RenderDetail::StoredPixel::of ( const PixelResult &  a_result)
inlinestaticnoexcept

The stored part of a pixel's result.

Parameters
[in]a_resultThe result.
Returns
The stored pixel.

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