This wiki is out of date, use the continuation of this wiki instead

Blendop swap

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:30, 17 January 2008 (edit)
Sandman (Talk | contribs)
(New page: Category:functions Category:Blendops ==Definition== '''INT''' blendop_swap ( <'''INT''' blendopID> ) Modify the blend table of the blend operation by swapping the source ...)
← Previous diff
Current revision (23:19, 17 January 2008) (edit) (undo)
Sandman (Talk | contribs)
m
 
(One intermediate revision not shown.)
Line 3: Line 3:
==Definition== ==Definition==
-'''INT''' blendop_swap ( <'''INT''' blendopID> )+'''INT''' blendop_swap ( <'''INT''' blendTable> )
-Modify the [[blend table]] of the [[blend operation]] by swapping the source and destination sections. This means that the [[graphic]] the blend operation is assigned to will appear like what is behind the object and the background will look like the object.+Modify the [[blend table]] by swapping the source and destination sections. This means that the [[graphic]] the blend operation is assigned to will appear like what is behind the object and the background will look like the object.
This will swap the source and destination section of the [[blend table]]. This will swap the source and destination section of the [[blend table]].
Line 11: Line 11:
== Parameters == == Parameters ==
{| {|
-| '''INT''' blendopID || - The [[blendopID]] of the [[blendop]] to swap the sections of.+| '''INT''' blendTable || - The [[blend table]] to swap the sections of.
|} |}
Line 19: Line 19:
== Notes == == Notes ==
To understand what swapping actually does, consider the following: To understand what swapping actually does, consider the following:
-* When done a blendop_swap() on a just initialized [[blend operation]], the [[graphic]] it is assigned to will 'disappear'.+* When done a blendop_swap() on a just initialized [[blend table]], the [[graphic]] it is assigned to will 'disappear'.
{{Funcbox {{Funcbox
| category = Blendops | category = Blendops
}} }}

Current revision


Contents

[edit] Definition

INT blendop_swap ( <INT blendTable> )

Modify the blend table by swapping the source and destination sections. This means that the graphic the blend operation is assigned to will appear like what is behind the object and the background will look like the object.

This will swap the source and destination section of the blend table.

[edit] Parameters

INT blendTable - The blend table to swap the sections of.

[edit] Returns

INT : true

[edit] Notes

To understand what swapping actually does, consider the following:

  • When done a blendop_swap() on a just initialized blend table, the graphic it is assigned to will 'disappear'.


Blendops Functions
Blendop_apply() • Blendop_assign() • Blendop_free() • Blendop_grayscale() • Blendop_identity() • Blendop_intensity() • Blendop_new() • Blendop_swap() • Blendop_tint() • Blendop_translucency() •
Personal tools