opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
graphics
scene
scene_decoration_shading.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/graphics/color.h
>
4
#include <
liboscar/graphics/material.h
>
5
#include <
liboscar/graphics/material_property_block.h
>
6
7
#include <variant>
8
9
namespace
osc
10
{
11
// the choice of shading that a `SceneRenderer` should use when drawing a `SceneDecoration`
12
using
SceneDecorationShading
= std::variant<
13
14
// draws the `SceneDecoration` with this `Color` using an implementation-defined `Material`
15
Color
,
16
17
// draws the `SceneDecoration` with this `Material`
18
//
19
// note: the vertex shader for the `Material` should apply the decoration's transform
20
// to the decoration's mesh "normally" (`SceneRenderer` relies on knowing the
21
// world space mesh bounds etc. for various calculations)
22
Material
,
23
24
// draws the `SceneDecoration` with this `(Material, MaterialPropertyBlock)` pair
25
//
26
// note: the vertex shader for the `Material` should apply the decoration's transform
27
// to the decoration's mesh "normally" (`SceneRenderer` relies on knowing the
28
// world space mesh bounds etc. for various calculations)
29
std::pair<Material, MaterialPropertyBlock>
30
>;
31
}
osc::Material
Definition
material.h:21
color.h
material.h
material_property_block.h
osc
Definition
custom_decoration_generator.h:5
osc::Color
Rgba< float > Color
Definition
color.h:11
osc::SceneDecorationShading
std::variant< Color, Material, std::pair< Material, MaterialPropertyBlock > > SceneDecorationShading
Definition
scene_decoration_shading.h:30
Generated by
1.9.8