Avara3D 0.2.0
C++ API reference
a3d::Background Struct Reference

Configures a solid-color or cubemap background for a VisualWorld. More...

#include <a3d/visual/Background.h>

Public Member Functions

 Background (Material::Property contents)
 Creates a background with contents. More...
 

Public Attributes

Material::Property contents {}
 Background contents; VisualWorld accepts a Color or a Texture containing a CubeImage. More...
 
math::quat orientation {1.0f}
 Orientation applied when sampling a cubemap background. More...
 

Detailed Description

Configures a solid-color or cubemap background for a VisualWorld.

Definition at line 18 of file Background.h.

Constructor & Destructor Documentation

◆ Background()

a3d::Background::Background ( Material::Property  contents)
explicit

Creates a background with contents.

Member Data Documentation

◆ contents

Material::Property a3d::Background::contents {}

Background contents; VisualWorld accepts a Color or a Texture containing a CubeImage.

Definition at line 27 of file Background.h.

◆ orientation

math::quat a3d::Background::orientation {1.0f}

Orientation applied when sampling a cubemap background.

Definition at line 28 of file Background.h.


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