Difference between revisions of "NiTexturingPropertySetTextureFlags"
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (short:clampMode) NiTexturingPropertySetTextureClampMode short:texSlot short:nifID ''short:blockID'' (short:clampMode) NiT...) |
imported>DragoonWraith |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
'''Syntax''' | '''Syntax''' | ||
(short: | (bool:success) NiTexturingPropertySetTextureFlags short:flags short:texSlot short:nifID ''short:blockID'' | ||
(short: | (bool:success) NiTexPropSetTexFlags short:flags short:texSlot short:nifID ''short:blockID'' | ||
Sets the "flags" of the [[:Category:NifSE (NiSourceTexture)|<tt>NiSourceTexture</tt>]]-derived block that is filling the specified <tt>texSlot</tt>. The texture slots range from 0 to [[ | Sets the "flags" of the [[:Category:NifSE (NiSourceTexture)|<tt>NiSourceTexture</tt>]]-derived block that is filling the specified <tt>texSlot</tt>. The texture slots range from 0 to [[NiTexturingPropertyGetTextureCount]], and the possible choices are given below. See [[NiTexturingPropertyGetTextureCount]] for more details. | ||
The flags value is presumably a bitfield, assumed to be involved in clamp and filter modes, but the exact values are unknown. In almost all cases, it would be better to use the [[NiTexturingPropertySetTextureClampMode]] and [[ | The flags value is presumably a bitfield, assumed to be involved in clamp and filter modes, but the exact values are unknown. In almost all cases, it would be better to use the [[NiTexturingPropertySetTextureClampMode]] and [[NiTexturingPropertySetTextureFilterMode]] functions directly. | ||
Returns 0 if the function fails for whatever reason, 1 otherwise. | Returns 0 if the function fails for whatever reason, 1 otherwise. |
Latest revision as of 16:33, 21 January 2011
This is a command from NifSE.
Syntax
(bool:success) NiTexturingPropertySetTextureFlags short:flags short:texSlot short:nifID short:blockID (bool:success) NiTexPropSetTexFlags short:flags short:texSlot short:nifID short:blockID
Sets the "flags" of the NiSourceTexture-derived block that is filling the specified texSlot. The texture slots range from 0 to NiTexturingPropertyGetTextureCount, and the possible choices are given below. See NiTexturingPropertyGetTextureCount for more details.
The flags value is presumably a bitfield, assumed to be involved in clamp and filter modes, but the exact values are unknown. In almost all cases, it would be better to use the NiTexturingPropertySetTextureClampMode and NiTexturingPropertySetTextureFilterMode functions directly.
Returns 0 if the function fails for whatever reason, 1 otherwise.
The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from NiTexturingProperty, so this function will always require an explicit blockID.
Texture Slots
- BASE_MAP = 0 - a.k.a. the color map
- DARK_MAP = 1
- DETAIL_MAP = 2
- GLOSS_MAP = 3
- GLOW_MAP = 4
- BUMP_MAP = 5
- NORMAL_MAP = 6
- UNKNOWN2_MAP = 7
- DECAL_0_MAP = 8
- DECAL_1_MAP = 9
- DECAL_2_MAP = 10
- DECAL_3_MAP = 11