Difference between revisions of "NiAlphaPropertyGetSourceBlendFunction"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (short:blendFunc) NiAlphaPropertyGetBlendFunction short:nifID ''short:blockID'' (short:blendFunc) NiAlphaPropGetBlendFunc ...)
 
imported>DragoonWraith
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (short:blendFunc) NiAlphaPropertyGetBlendFunction short:nifID ''short:blockID''
  (short:blendFunc) NiAlphaPropertyGetSourceBlendFunction short:nifID ''short:blockID''
  (short:blendFunc) NiAlphaPropGetBlendFunc short:nifID ''short:blockID''
  (short:blendFunc) NiAlphaPropGetSrcBlendFunc short:nifID ''short:blockID''


Returns the integer ID of the blend function used by the [[:Category:NifSE (NiAlphaProperty)|<tt>NiAlphaProperty</tt>]] specified by <tt>blockID</tt>. The possible values and their meanings are indicated below.
Returns the integer ID of the blend function used for the source by the [[:Category:NifSE (NiAlphaProperty)|<tt>NiAlphaProperty</tt>]] specified by <tt>blockID</tt>. The possible values and their meanings are indicated below.


Returns -1 if the function fails for any reason.
Returns -1 if the function fails for any reason.
Line 15: Line 15:
== See Also ==
== See Also ==


* [[NiAlphaPropertySetBlendFunction]]
* [[NiAlphaPropertySetSourceBlendFunction]]


[[Category:NifSE|AlphaPropertyGetBlendFunction]]
* [[NiAlphaPropertyGetDestinationBlendFunction]]
[[Category:NifSE (NiAlphaProperty)|GetBlendFunction]]
 
[[Category:NifSE|AlphaPropertyGetSourceBlendFunction]]
[[Category:NifSE (NiAlphaProperty)|GetSourceBlendFunction]]

Latest revision as of 17:16, 21 January 2011

This is a command from NifSE.

Syntax

(short:blendFunc) NiAlphaPropertyGetSourceBlendFunction short:nifID short:blockID
(short:blendFunc) NiAlphaPropGetSrcBlendFunc short:nifID short:blockID

Returns the integer ID of the blend function used for the source by the NiAlphaProperty 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 NiAlphaProperty, so this function will always require an explicit blockID.

Blend Functions

The function of each value is equivalent to the OpenGL blending function of similar name.

  • ONE = 0
  • ZERO = 1
  • SRC_COLOR = 2
  • ONE_MINUS_SRC_COLOR = 3
  • DST_COLOR = 4
  • ONE_MINUS_DST_COLOR = 5
  • SRC_ALPHA = 6
  • ONE_MINUS_SRC_ALPHA = 7
  • DST_ALPHA = 8
  • ONE_MINUS_DST_ALPHA = 9
  • SRC_ALPHA_SATURATE = 10

See Also[edit | edit source]