![]() |
HIRO_DRAW
Computer Graphics Structures library
|
Structure specifying how the skeleton should be rendered. More...
Public Types | |
| enum | RenderMode { RenderMode::octahedral, RenderMode::octahedral_wire, RenderMode::stick } |
| Mode used to render skeleton. More... | |
Public Member Functions | |
| bool | ReadFromStream (std::istream &str) override |
| Import state from stream. | |
| void | WriteToStream (std::ostream &str) override |
| Export state to stream. | |
Data Fields | |
| hiro::shader::Material | bonejoint_material { hiro::shader::Material(cogs::color::GRAY70) } |
| Material used to render bones as well as joints of the skeleton. | |
| bool | display_basis { false } |
| Defines whether the basis vectors of each individual bone should be displayed. | |
| bool | display_joints { true } |
| When enabled, also joints will be rendered. | |
| hiro::draw::SkeletonStyle::RenderMode | render_mode { hiro::draw::SkeletonStyle::RenderMode::octahedral } |
| Specifies the mode used to render the skeleton. | |
Data Fields inherited from hiro::draw::Style | |
| bool | visible = true |
| Whether the renderer that uses this style should be skipped during the rendering. | |
| cogs::Transform | transform |
| Model transformation applied to the renderer. In shader will appear as MODEL_MATRIX. | |
Additional Inherited Members | |
Protected Member Functions inherited from hiro::draw::Style | |
| bool | ReadVersion (std::istream &str, const uint32_t expected_version) |
| Read uint32_t version from stream and check if it is equal to the expected version. | |
Structure specifying how the skeleton should be rendered.
|
strong |