Difference between revisions of "NiTexturingPropertySetTextureCount"
Jump to navigation
Jump to search
NiTexturingPropertySetTextureCount (edit)
Revision as of 12:33, 21 January 2011
, 12:33, 21 January 2011no edit summary
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiTexturingPropertySetTextureCount short:texCount short:nifID ''short:blockID'' (bool:success) NiTexPropSet...) |
imported>DragoonWraith |
||
Line 5: | Line 5: | ||
(bool:success) NiTexPropSetTexCount short:texCount short:nifID ''short:blockID'' | (bool:success) NiTexPropSetTexCount short:texCount short:nifID ''short:blockID'' | ||
Sets 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 | Sets 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 should be passed. | ||
Returns 0 if the function fails for whatever reason, 1 otherwise. | Returns 0 if the function fails for whatever reason, 1 otherwise. |