<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd"> <html> <!-- Created by texi2html 1.76 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> Olaf Bachmann <obachman@mathematik.uni-kl.de> and many others. Maintained by: Many creative people <dev@texi2html.cvshome.org> Send bugs and suggestions to <users@texi2html.cvshome.org> --> <head> <title>Crystal Space 1.2.1: 4.16.3.2 Parsing Mixmode</title> <meta name="description" content="Crystal Space 1.2.1: 4.16.3.2 Parsing Mixmode"> <meta name="keywords" content="Crystal Space 1.2.1: 4.16.3.2 Parsing Mixmode"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html 1.76"> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} pre.display {font-family: serif} pre.format {font-family: serif} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: serif; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: serif; font-size: smaller} pre.smalllisp {font-size: smaller} span.sansserif {font-family:sans-serif; font-weight:normal;} ul.toc {list-style: none} --> </style> </head> <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <a name="XMLServices-Mixmode"></a> <a name="0"></a> <table cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="XMLServices-Intro.html#0" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="Old-Map-File-Format.html#0" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="Using-Crystal-Space.html#0" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="XML-Syntax-Services.html#0" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="Working-with-Engine-Content.html#0" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="index.html#SEC_Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[<a href="cs_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td> <td valign="middle" align="left">[<a href="cs_Index.html#0" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="cs_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <hr size="1"> <h4 class="subsubsection"> 4.16.3.2 Parsing Mixmode </h4> <p>The <code>iSyntaxService::ParseMixmode()</code> function parses a <samp>‘mixmode’</samp> node which is used for defining transparency or how the source (usually a texture) is blended with the destination (usually a screen buffer). For more information about mixmodes check <a href="Renderer-Mixmodes.html#0">Mixmodes and Blending</a>. </p> <p>The following children are supported for mixmode: </p> <ul> <li> <samp>‘copy’</samp> Copy blending. This mode is usually default. </li><li> <samp>‘multiply’</samp> Multiplicative blending. </li><li> <samp>‘multiply2’</samp> Double multiplicative blending. Often used for lighting. </li><li> <samp>‘add’</samp> Additive blending. Used for transparency effects that don't require back to front sorting. </li><li> <samp>‘alpha’</samp> Alpha blending. Expects and additional parameter between 0 and 1 that indicates the alpha value. This kind of blending requires back to front sorting to look right. </li><li> <samp>‘premultalpha’</samp> Premultiplied alpha blending. </li><li> <samp>‘destalphaadd’</samp> @@TODO </li><li> <samp>‘srcalphaadd’</samp> @@TODO </li><li> <samp>‘transparent’</samp> Fully transparent but still affect Z-buffer. </li><li> <samp>‘mesh’</samp> @@TODO </li><li> <samp>‘alphatest’</samp> One of: <samp>‘auto’</samp>, <samp>‘enable’</samp>, or <samp>‘disable’</samp>. @@TODO </li><li> <samp>‘blendop’</samp> This child expects two attributes: <samp>‘src’</samp> and <samp>‘dest’</samp>. Both can have one of the following as a value: <samp>‘dstalpha’</samp>, <samp>‘dstalpha_inv’</samp>, <samp>‘dstcolor’</samp>, <samp>‘dstcolor_inv’</samp>, <samp>‘one’</samp>, <samp>‘srcalpha’</samp>, <samp>‘srcalpha_inv’</samp>, <samp>‘scrcolor’</samp>, <samp>‘srccolor_inv’</samp>, or <samp>‘zero’</samp>. @@TODO </li></ul> <hr size="1"> <p> <font size="-1"> This document was generated using <a href="http://texi2html.cvshome.org/"><em>texi2html 1.76</em></a>. </font> <br> </p> </body> </html>