struct cogs::Material — HIRO 0.7.0 documentation

# struct cogs::Material

    #include <MaterialModel.h>

    struct Material {
        // fields

        std::array<cogs::Color4b, size_t(MaterialColors::_count)> color;
        uint32_t shininess = 60;

        // construction

        Material();
        Material(const cogs::Color4b& color, uint32_t shininess);

        // methods

        cogs::Color4b GetColor(const MaterialColors& type);
        void SetAllColors(const cogs::Color4b& new_color);
    };