Difference between revisions of "NiTexturingPropertyGetTextureClampMode"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (short:clampMode) NiTexturingPropertyGetTextureClampMode short:texSlot short:nifID ''short:blockID'' (short:clampMode) NiT...)
 
imported>DragoonWraith
(NiTextureSource ->NiSourceTexture)
Line 5: Line 5:
  (short:clampMode) NiTexPropGetTexClamp short:texSlot short:nifID ''short:blockID''
  (short:clampMode) NiTexPropGetTexClamp short:texSlot short:nifID ''short:blockID''


Returns a short value which indicates the clamp mode of the [[:Category:NifSE (NiTextureSource)|<tt>NiTextureSource</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.
Returns a short value which indicates the clamp mode 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 possible values for clamp mode tell whether each of the S(U) and T(V) directions are clamped or wrapped, as follows:
The possible values for clamp mode tell whether each of the S(U) and T(V) directions are clamped or wrapped, as follows:

Revision as of 17:55, 31 August 2010

This is a command from NifSE.

Syntax

(short:clampMode) NiTexturingPropertyGetTextureClampMode short:texSlot short:nifID short:blockID
(short:clampMode) NiTexPropGetTexClamp short:texSlot short:nifID short:blockID

Returns a short value which indicates the clamp mode 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 possible values for clamp mode tell whether each of the S(U) and T(V) directions are clamped or wrapped, as follows:

0 = clamp S, clamp T
1 = clamp S, wrap T
2 = wrap S, clamp T
3 = wrap S, wrap T

Returns -1 if the function fails for whatever reason.

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

See Also