Fill in iterator traits for gltf accessor iterator
This commit is contained in:
parent
b5117ca8b2
commit
e1201e7913
1 changed files with 6 additions and 0 deletions
|
|
@ -197,6 +197,12 @@ namespace psemek::gfx
|
|||
template <typename T>
|
||||
struct accessor_iterator
|
||||
{
|
||||
using value_type = T;
|
||||
using pointer = T *;
|
||||
using reference = T &;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using iterator_category = std::input_iterator_tag;
|
||||
|
||||
accessor_iterator(gltf_asset const & asset, std::size_t accessor_id, std::size_t element_index)
|
||||
{
|
||||
accessor_ = asset.accessors[accessor_id];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue