# struct hiro::draw::FrustumStyle

## Overview

Stylization of the rendered frustum. More…

    #include <FrustumRenderer.h>

    struct FrustumStyle: public hiro::draw::Style {
        // fields

        float line_thickness { 1.0f };
        cogs::Color3f near_color { cogs::color::GRAY50 };
        cogs::Color3f far_color { cogs::color::GRAY50 };
        bool draw_eye_lines { true };
        cogs::Color3f eye_lines_color { cogs::color::GRAY50 };

        // methods

        virtual bool ReadFromStream(std::istream& str);
        virtual void WriteToStream(std::ostream& str);
    };

### Inherited Members

    public:
        // fields

        bool visible = true;
        cogs::Transform transform;

        // methods

        virtual bool ReadFromStream(std::istream& str);
        virtual void WriteToStream(std::ostream& str);

    protected:
        // methods

        bool ReadVersion(std::istream& str, const uint32_t expected_version);

## Detailed Documentation

Stylization of the rendered frustum.

### 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.

### Methods

    virtual bool ReadFromStream(std::istream& str)

Imports state from stream.

    virtual void WriteToStream(std::ostream& str)

Exports state to stream.