Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > dabbad934aa2b21dfdf7cadba1bf877f > files > 31

libSDL_gfx-devel-2.0.22-1.mga1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>SDL_gfx: SDL_gfxBlitFunc.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>SDL_gfxBlitFunc.c File Reference</h1><code>#include &quot;<a class="el" href="_s_d_l__gfx_blit_func_8h_source.html">SDL_gfxBlitFunc.h</a>&quot;</code><br/>

<p><a href="_s_d_l__gfx_blit_func_8c_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__gfx_blit_func_8c.html#a7ec9cde56a58eee4e6182c32dd8cbee7">_SDL_gfxBlitBlitterRGBA</a> (<a class="el" href="struct_s_d_l__gfx_blit_info.html">SDL_gfxBlitInfo</a> *info)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal blitter using adjusted destination alpha during RGBA-&gt;RGBA blits.  <a href="#a7ec9cde56a58eee4e6182c32dd8cbee7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__gfx_blit_func_8c.html#a9375eac21cc799258f971034a3be57b5">_SDL_gfxBlitRGBACall</a> (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal blitter setup wrapper for RGBA-&gt;RGBA blits.  <a href="#a9375eac21cc799258f971034a3be57b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__gfx_blit_func_8c.html#ac51ff40d39f3dd0bd08116e8953960f8">SDL_gfxBlitRGBA</a> (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Blitter for RGBA-&gt;RGBA blits with alpha adjustment.  <a href="#ac51ff40d39f3dd0bd08116e8953960f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__gfx_blit_func_8c.html#a09a376775f9d8c933c7121e34fe5ecfc">SDL_gfxSetAlpha</a> (SDL_Surface *src, Uint8 a)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the alpha channel in a 32 bit surface.  <a href="#a09a376775f9d8c933c7121e34fe5ecfc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__gfx_blit_func_8c.html#a4ece530dca0ae46b1f5a780f85371687">SDL_gfxMultiplyAlpha</a> (SDL_Surface *src, Uint8 a)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiply the alpha channel in a 32bit surface.  <a href="#a4ece530dca0ae46b1f5a780f85371687"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a7ec9cde56a58eee4e6182c32dd8cbee7"></a><!-- doxytag: member="SDL_gfxBlitFunc.c::_SDL_gfxBlitBlitterRGBA" ref="a7ec9cde56a58eee4e6182c32dd8cbee7" args="(SDL_gfxBlitInfo *info)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _SDL_gfxBlitBlitterRGBA </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l__gfx_blit_info.html">SDL_gfxBlitInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>info</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal blitter using adjusted destination alpha during RGBA-&gt;RGBA blits. </p>
<p>Performs the blit based on the 'info' structure and applies the transfer function to the destination 'a' values.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>info</em>&nbsp;</td><td>The blit info to use. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html#l00285">285</a> of file <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html">SDL_gfxBlitFunc.c</a>.</p>

</div>
</div>
<a class="anchor" id="a9375eac21cc799258f971034a3be57b5"></a><!-- doxytag: member="SDL_gfxBlitFunc.c::_SDL_gfxBlitRGBACall" ref="a9375eac21cc799258f971034a3be57b5" args="(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int _SDL_gfxBlitRGBACall </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect *&nbsp;</td>
          <td class="paramname"> <em>srcrect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect *&nbsp;</td>
          <td class="paramname"> <em>dstrect</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal blitter setup wrapper for RGBA-&gt;RGBA blits. </p>
<p>Sets up the blitter info based on the 'src' and 'dst' surfaces and rectangles.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcrect</em>&nbsp;</td><td>The source rectangle. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dst</em>&nbsp;</td><td>The destination surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstrect</em>&nbsp;</td><td>The destination rectangle.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 1 if blit was performed, 0 otherwise. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html#l00335">335</a> of file <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html">SDL_gfxBlitFunc.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac51ff40d39f3dd0bd08116e8953960f8"></a><!-- doxytag: member="SDL_gfxBlitFunc.c::SDL_gfxBlitRGBA" ref="ac51ff40d39f3dd0bd08116e8953960f8" args="(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDL_gfxBlitRGBA </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect *&nbsp;</td>
          <td class="paramname"> <em>srcrect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect *&nbsp;</td>
          <td class="paramname"> <em>dstrect</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Blitter for RGBA-&gt;RGBA blits with alpha adjustment. </p>
<p>Verifies the input 'src' and 'dst' surfaces and rectangles and performs blit. The destination clip rectangle is honored.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The source surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcrect</em>&nbsp;</td><td>The source rectangle. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dst</em>&nbsp;</td><td>The destination surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstrect</em>&nbsp;</td><td>The destination rectangle.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 1 if blit was performed, 0 otherwise, or -1 if an error occured. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html#l00390">390</a> of file <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html">SDL_gfxBlitFunc.c</a>.</p>

</div>
</div>
<a class="anchor" id="a4ece530dca0ae46b1f5a780f85371687"></a><!-- doxytag: member="SDL_gfxBlitFunc.c::SDL_gfxMultiplyAlpha" ref="a4ece530dca0ae46b1f5a780f85371687" args="(SDL_Surface *src, Uint8 a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDL_gfxMultiplyAlpha </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&nbsp;</td>
          <td class="paramname"> <em>a</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiply the alpha channel in a 32bit surface. </p>
<p>Helper function that multiplies the alpha channel in a 32 bit surface with a constant value. The final alpha is always scaled to the range 0-255 (i.e. the factor is a/256). Only 32 bit surfaces can be used with this function.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>Pointer to the target surface to change. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>The alpha value to multiply with.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 1 if alpha was changed, 0 otherwise. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html#l00547">547</a> of file <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html">SDL_gfxBlitFunc.c</a>.</p>

</div>
</div>
<a class="anchor" id="a09a376775f9d8c933c7121e34fe5ecfc"></a><!-- doxytag: member="SDL_gfxBlitFunc.c::SDL_gfxSetAlpha" ref="a09a376775f9d8c933c7121e34fe5ecfc" args="(SDL_Surface *src, Uint8 a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDL_gfxSetAlpha </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&nbsp;</td>
          <td class="paramname"> <em>a</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the alpha channel in a 32 bit surface. </p>
<p>Helper function that sets the alpha channel in a 32 bit surface to a constant value. Only 32 bit surfaces can be used with this function.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>Pointer to the target surface to change. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>The alpha value to set.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 1 if alpha was changed, 0 otherwise. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html#l00503">503</a> of file <a class="el" href="_s_d_l__gfx_blit_func_8c_source.html">SDL_gfxBlitFunc.c</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>