HIRO_DRAW
Computer Graphics Structures library
hiro::draw::FrustumStyle Struct Reference

Stylization of the rendered frustum. More...

Inheritance diagram for hiro::draw::FrustumStyle:
[legend]

Public Member Functions

virtual bool ReadFromStream (std::istream &str) override
 Imports state from stream.
 
virtual void WriteToStream (std::ostream &str) override
 Exports state to stream.
 

Data Fields

float line_thickness { 1.0f }
 Specifies thickness of a lines.
 
cogs::Color3f near_color { cogs::color::GRAY50 }
 Color of the frustum visualization on near plane.
 
cogs::Color3f far_color { cogs::color::GRAY50 }
 Color of the frustum visualization on far plane.
 
bool draw_eye_lines { true }
 Whether lines from eye should be rendered.
 
cogs::Color3f eye_lines_color { cogs::color::GRAY50 }
 Color of the frustum visualization on far plane.
 
- 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.
 

Detailed Description

Stylization of the rendered frustum.