struct glw::Attrib — HIRO 0.7.0 documentation

# struct glw::Attrib

Array attribute. Defines how specific data are stored in combined buffer. For example how are vertex colors stored in array of vertex data.

    #include <ArrayObject.h>

    struct Attrib {
        // fields

        gl::GLenum type;
        uint32_t per_vert;
        uint64_t offset;
        uint32_t stride;

        // construction

        Attrib(gl::GLenum gl_type, uint32_t data_per_vert, uint32_t byte_offset, uint32_t byte_stride);
    };