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

Blendop new

From FenixWiki

Revision as of 16:42, 17 January 2008 by Sandman (Talk | contribs)
Jump to: navigation, search


Contents

Definition

INT blendop_new ( )

Creates a new blend operation with a blend table. This table will contain a blending effect, which you'll have to set after creating the blend operation. When that is done you can finally apply or assign the blendop to a graphic.

The source section of the blend table will be the normal object and the destination section will be cleared, removing translucency.

Returns

0 - Error: insufficient memory or the screen was not yet initialized.
 !0 - Success (pointer to the blend table).

Notes

The right order of doing blending stuff: First create a new table with blendop_new(), then put a blending effect in it with for example blendop_tint(), and then assign it to a graphic with blendop_assign().

Errors

Insufficient memory - There is insufficient memory available. This error doesn't occur often.


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