Browse Source

Trade: custom material attribs can start with non-letters as well.

Becase $assimp ?does +that.
pull/459/head
Vladimír Vondruš 6 years ago
parent
commit
81f5468b65
  1. 8
      src/Magnum/Trade/MaterialData.h

8
src/Magnum/Trade/MaterialData.h

@ -1541,10 +1541,10 @@ data is treated as immutable, you *have to* ensure the list is sorted by name.
@subsection Trade-MaterialData-populating-custom Custom material attributes @subsection Trade-MaterialData-populating-custom Custom material attributes
While attribute names beginning with uppercase letters are reserved for builtin While attribute names beginning with uppercase letters are reserved for builtin
Magnum attributes, anything beginning with a lowercase letter can be a custom Magnum attributes, anything beginning with a lowercase letter or a non-letter
attribute. For greater flexibility, custom attributes can be also strings or can be a custom attribute. For greater flexibility, custom attributes can be
pointers, allowing you to store arbitrary properties or direct texture pointers also strings or pointers, allowing you to store arbitrary properties or direct
instead of IDs: texture pointers instead of IDs:
@snippet MagnumTrade.cpp MaterialData-populating-custom @snippet MagnumTrade.cpp MaterialData-populating-custom

Loading…
Cancel
Save