NiVertexColorPropertyGetVertexMode

From the Oblivion ConstructionSet Wiki
Revision as of 18:11, 23 January 2011 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (short:vertMode) NiVertexColorPropertyGetVertexMode short:nifID ''short:blockID'' (short:vertMode) NiVertexColorPropGetVer...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(short:vertMode) NiVertexColorPropertyGetVertexMode short:nifID short:blockID
(short:vertMode) NiVertexColorPropGetVertMode short:nifID short:blockID

Returns the integer ID for the vertex mode used by the NiVertexColorProperty specified by blockID. The possible values and their meanings are indicated below.

Returns -1 if the function fails for any reason.

The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from NiVertexColorProperty, so this function will always require an explicit blockID.

Vertex Modes

  • SRC_IGNORE = 0
  • SRC_EMISSIVE = 1
  • SRC_AMB_DIF = 2 (ambient and diffuse, the default)

See Also