6#include "../datatypes/material.hpp"
7#include "../datatypes/rgba32.hpp"
8#include "../result.hpp"
42 Material(std::optional<rerun::datatypes::Rgba32> albedo_factor_)
43 : material(albedo_factor_) {}
45 Material& operator=(std::optional<rerun::datatypes::Rgba32> albedo_factor_) {
46 material = albedo_factor_;
63 struct Loggable<components::Material> {
64 static constexpr const char Name[] =
"rerun.components.Material";
67 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
71 arrow::StructBuilder* builder,
const components::Material* elements,
size_t num_elements
75 static Result<std::shared_ptr<arrow::Array>> to_arrow(
76 const components::Material* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: Material properties of a mesh.
Definition material.hpp:22
Datatype: Material properties of a mesh.
Definition material.hpp:21
Datatype: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition rgba32.hpp:27