NiStencilPropertySetFaceDrawMode

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

This is a command from NifSE.

Syntax

(bool:success) NiStencilPropertySetFaceDrawMode short:faceDrawMode short:nifID short:blockID
(bool:success) NiStencilPropSetFunc short:faceDrawMode short:nifID short:blockID

Sets 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 successful, 0 otherwise.

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]