Avara3D 0.2.0
C++ API reference
Background.h
1//
2// Background.h
3// avara3d
4//
5// Created by Morgan Davis on 8/9/26.
6// Copyright © 2026 Morgan K Davis. All rights reserved.
7//
8
9#ifndef AVARA3D_VISUAL_BACKGROUND_H
10#define AVARA3D_VISUAL_BACKGROUND_H
11
12#include "a3d/Math.h"
13#include "a3d/visual/material/Material.h"
14
15namespace a3d {
16
18 struct Background {
19
20 // [Public Lifecycle Functions]
21
24
25 // [Public Member Variables]
26
29 };
30
31}
32
33#endif // AVARA3D_VISUAL_BACKGROUND_H
std::variant< std::monostate, std::shared_ptr< Texture >, Color > Property
Material property contents: absent, a shared Texture, or a constant Color.
Definition: Material.h:40
Configures a solid-color or cubemap background for a VisualWorld.
Definition: Background.h:18
Background(Material::Property contents)
Creates a background with contents.
Material::Property contents
Background contents; VisualWorld accepts a Color or a Texture containing a CubeImage.
Definition: Background.h:27
math::quat orientation
Orientation applied when sampling a cubemap background.
Definition: Background.h:28