From 4e1ea6ecd7d2a7131ff9751ac3ffd9f07e483f86 Mon Sep 17 00:00:00 2001 From: Squareys Date: Fri, 19 May 2017 13:31:20 +0200 Subject: [PATCH] docs: Explain texture paths for embedded textures --- doc/dox.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/dox.h b/doc/dox.h index 4e9ebcc..46ca232 100644 --- a/doc/dox.h +++ b/doc/dox.h @@ -730,6 +730,8 @@ need them at all. Normally textures used by assets are stored in separate files, however, there are file formats embedding their textures directly into the model file. Such textures are loaded into an aiTexture structure. +For embedded textures, the value of `AI_MATKEY_TEXTURE(textureType, index)` will be `*` where +`` is the index of the texture in aiScene::mTextures.
There are two cases:
@@ -917,7 +919,7 @@ All material key constants start with 'AI_MATKEY' (it's an ugly macro for histor TEXTURE(t,n) aiString n/a - Defines the path to the n'th texture on the stack 't', where 'n' is any value >= 0 and 't' is one of the #aiTextureType enumerated values. + Defines the path of the n'th texture on the stack 't', where 'n' is any value >= 0 and 't' is one of the #aiTextureType enumerated values. Either a filepath or `*`, where `` is the index of an embedded texture in aiScene::mTextures. See the 'Textures' section above. -- 2.7.4