Difference between revisions of "NiTexturingPropertyGetTextureCount"
NiTexturingPropertyGetTextureCount (edit)
Revision as of 13:26, 31 August 2010
, 13:26, 31 August 2010no edit summary
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (short:textureCount) NiTexturingPropertyGetTextureCount short:nifID ''short:blockID'' (short:textureCount) NiTexturingProp...) |
imported>DragoonWraith |
||
Line 3: | Line 3: | ||
'''Syntax''' | '''Syntax''' | ||
(short:textureCount) NiTexturingPropertyGetTextureCount short:nifID ''short:blockID'' | (short:textureCount) NiTexturingPropertyGetTextureCount short:nifID ''short:blockID'' | ||
(short:textureCount) | (short:textureCount) NiTexPropGetTexCount short:nifID ''short:blockID'' | ||
Returns the number of texture slots that the [[:Category:NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] specified by <tt>blockID</tt> has open. Each slot has a specific meaning to the NIF - slot 0 is always the base map, slot 4 is always the glow map, etc. If a given slot is open, all slots below it must be also, so knowing the number of slots open also indicates which slots are open. For example, a texture count of 5 will mean that the <tt>NiTexturingProperty</tt> uses the base, dark, detail, gloss, and glow maps. There are a maximum of 12 types of textures, so 12 is the maximum value that this should return. | Returns the number of texture slots that the [[:Category:NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] specified by <tt>blockID</tt> has open. Each slot has a specific meaning to the NIF - slot 0 is always the base map, slot 4 is always the glow map, etc. If a given slot is open, all slots below it must be also, so knowing the number of slots open also indicates which slots are open. For example, a texture count of 5 will mean that the <tt>NiTexturingProperty</tt> uses the base, dark, detail, gloss, and glow maps. There are a maximum of 12 types of textures, so 12 is the maximum value that this should return. |