mirror of https://github.com/mosra/magnum.git
Browse Source
In most cases the label is set directly from code, e.g.:
texture.setLabel("diffuse-duck");
Avoiding conversion to std::string and passing char(&)[size] directly
will avoid one allocation and deallocation. Better solution would be to
use std::string_view everywhere, but we're not in C++17 yet.
pull/68/head
26 changed files with 148 additions and 27 deletions
Loading…
Reference in new issue