4#ifndef _SCENEPIC_LAYER_SETTINGS_H_
5#define _SCENEPIC_LAYER_SETTINGS_H_
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Settings used for customizing canvas drawing by layer.
Definition: layer_settings.h:16
LayerSettings & wireframe(bool value)
Specifies whether to draw the layer with a wireframe outline.
static const int NO_RENDER_ORDER
Special value indicating that this layer has no specific rendering order.
Definition: layer_settings.h:66
bool wireframe() const
Specifies whether to draw the layer with a wireframe outline.
LayerSettings & render_order(int value)
Specifies a fixed order to draw transparency.
double opacity() const
In [0,1] specifies the opacity with which to draw the layer.
LayerSettings & opacity(double value)
In [0,1] specifies the opacity with which to draw the layer.
bool filled() const
Specifies whether to draw the layer with filled triangles.
LayerSettings(bool filled=true, bool wireframe=false, double opacity=1.0, int render_order=LayerSettings::NO_RENDER_ORDER)
Constructor.
std::string to_string() const
Return a JSON string representing the object.
JsonValue to_json() const
Convert this object into ScenePic json.
int render_order() const
Specifies a fixed order to draw transparency.
LayerSettings & filled(bool value)
Specifies whether to draw the layer with filled triangles.
Definition: audio_track.h:14