Struct gltf::Accessor [] [src]

pub struct Accessor {
    pub buffer_view: Id,
    pub byte_offset: u32,
    pub byte_stride: u32,
    pub component_type: u32,
    pub count: u32,
    pub component_width: String,
    pub extensions: Option<Map<String, Value>>,
    pub extras: Option<Map<String, Value>>,
    pub max: Option<Vec<f32>>,
    pub min: Option<Vec<f32>>,
}

Fields

The identifier of the BufferView this accessor reads from.

Where the data items begin from in the BufferView

The size of each data item in the BufferView

Possible values: GL_BYTE, GL_FLOAT, GL_SHORT, GL_UNSIGNED_BYTE, or GL_UNSIGNED_SHORT

The number of attributes within the BufferView (N.B. not number of bytes)

Possible values: "SCALAR", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3", or "MAT4"

Optional data targeting official extensions

Optional application specific data

Maximum value of each component in the attribute

Minimum value of each component in the attribtue

Trait Implementations

impl Debug for Accessor
[src]

Formats the value using the given formatter.

impl Default for Accessor
[src]

Returns the "default value" for a type. Read more