Skip to content
Snippets Groups Projects

Add initializer list variants for setData(...)

Merged Julius Nehring-Wirxel requested to merge feature/set_data_initializer_list into develop

This is required as set_data otherwise does not accept initializer_lists of specific types.

Before the following would not work:

my_texture.setData<uint8_t>(GL_R8, 4, 2, {1, 2, 3, 4, 5, 6, 7, 8});

as the implementation

template<class DataRangeT> 
void setData(GLenum internalFormat, int width, int height, DataRangeT&& data, int mipLevel){}

does not match correctly.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading