NiStencilPropertyGetFaceDrawMode

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(short:faceDrawMode) NiStencilPropertyGetFaceDrawMode short:nifID short:blockID
(short:faceDrawMode) NiStencilPropGetFunc short:nifID short:blockID

Returns the integer ID for the face draw mode used by the NiStencilProperty specified by blockID. The face draw mode is used to determine whether the front, back, or both sides of triangles will be drawn. This isn't related to the stencil buffer, but happens to be included in the NiStencilProperty, probably for convenience. 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 NiStencilProperty, so this function will always require an explicit blockID.

Face Draw Modes

  • DRAW_CCW_OR_CW = 0 (use application defaults?)
  • DRAW_CCW = 1
  • DRAW_CW = 2
  • DRAW_BOTH = 3

See Also[edit | edit source]