<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>My Project: SDL_surface.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">My Project </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">SDL_surface.h</div> </div> </div><!--header--> <div class="contents"> <a href="SDL__surface_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Simple DirectMedia Layer</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">*/</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifndef SDL_surface_h_</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define SDL_surface_h_</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="SDL__stdinc_8h.html">SDL_stdinc.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="SDL__pixels_8h.html">SDL_pixels.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="SDL__rect_8h.html">SDL_rect.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="SDL__blendmode_8h.html">SDL_blendmode.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="SDL__rwops_8h.html">SDL_rwops.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="begin__code_8h.html">begin_code.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">/* Set up for C function definitions, even when using C++ */</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">/* @{ */</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a59c7111f96872f973d0f058362761776"> 52</a></span> <span class="preprocessor">#define SDL_SWSURFACE 0 </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a4a5f795a69ac626fba73c4bd0bfd9626"> 53</a></span> <span class="preprocessor">#define SDL_PREALLOC 0x00000001 </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a3b3d53ad7ba0b7294ca25251d88d40fb"> 54</a></span> <span class="preprocessor">#define SDL_RLEACCEL 0x00000002 </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a2d3381f5c76aec3fea3f8b990c2e9f6d"> 55</a></span> <span class="preprocessor">#define SDL_DONTFREE 0x00000004 </span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a48a8fb403cb1513b0f689b532dc75861"> 56</a></span> <span class="preprocessor">#define SDL_SIMD_ALIGNED 0x00000008 </span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor"></span><span class="comment">/* @} */</span><span class="preprocessor"></span><span class="comment">/* Surface flags */</span><span class="preprocessor"></span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#aba3239116c763175b6ea41ef78b72091"> 62</a></span> <span class="preprocessor">#define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structSDL__Surface.html"> 70</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structSDL__Surface.html">SDL_Surface</a></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> {</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a86d78b665d5dfd7aa1dd9696b067641b"> 72</a></span>  Uint32 <a class="code" href="structSDL__Surface.html#a86d78b665d5dfd7aa1dd9696b067641b">flags</a>; </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a0a90721f947c10c3b79e02ccb419ca62"> 73</a></span>  <a class="code" href="structSDL__PixelFormat.html">SDL_PixelFormat</a> *<a class="code" href="structSDL__Surface.html#a0a90721f947c10c3b79e02ccb419ca62">format</a>; </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#af33bcf87a1f5e10a99b3c7e8626b38c8"> 74</a></span>  <span class="keywordtype">int</span> w, <a class="code" href="structSDL__Surface.html#af33bcf87a1f5e10a99b3c7e8626b38c8">h</a>; </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a5fa37325d77d65b2ed64ffc7cd01bb6c"> 75</a></span>  <span class="keywordtype">int</span> <a class="code" href="structSDL__Surface.html#a5fa37325d77d65b2ed64ffc7cd01bb6c">pitch</a>; </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#abd9597e0e084b8ef33fe0397bc26d911"> 76</a></span>  <span class="keywordtype">void</span> *<a class="code" href="structSDL__Surface.html#abd9597e0e084b8ef33fe0397bc26d911">pixels</a>; </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#ae66d973dcb9b57cb34815892e1ee1f31"> 79</a></span>  <span class="keywordtype">void</span> *<a class="code" href="structSDL__Surface.html#ae66d973dcb9b57cb34815892e1ee1f31">userdata</a>; </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a5022edaeea1c0a055fa5d6dccba41de2"> 82</a></span>  <span class="keywordtype">int</span> <a class="code" href="structSDL__Surface.html#a5022edaeea1c0a055fa5d6dccba41de2">locked</a>; </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a0afacfb933b54a9af0846a307a6924fb"> 83</a></span>  <span class="keywordtype">void</span> *<a class="code" href="structSDL__Surface.html#a0afacfb933b54a9af0846a307a6924fb">lock_data</a>; </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#aa9a0da3b38261dad6cf0cc4e3bb5b0c3"> 86</a></span>  <a class="code" href="structSDL__Rect.html">SDL_Rect</a> <a class="code" href="structSDL__Surface.html#aa9a0da3b38261dad6cf0cc4e3bb5b0c3">clip_rect</a>; </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a8c1ecad399b0d4f525b1a53b6ee9393f"> 89</a></span>  <span class="keyword">struct </span>SDL_BlitMap *<a class="code" href="structSDL__Surface.html#a8c1ecad399b0d4f525b1a53b6ee9393f">map</a>; </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structSDL__Surface.html#a03d10628a359c0674f5ceffd574f1641"> 92</a></span>  <span class="keywordtype">int</span> <a class="code" href="structSDL__Surface.html#a03d10628a359c0674f5ceffd574f1641">refcount</a>; </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> } <a class="code" href="SDL__surface_8h.html#a32471ad028ae3d2a132302bc5efcb1ee">SDL_Surface</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#ab2d7366d99a08693d476b98760690947"> 98</a></span> <span class="keyword">typedef</span> int (SDLCALL *<a class="code" href="SDL__surface_8h.html#ab2d7366d99a08693d476b98760690947">SDL_blit</a>) (<span class="keyword">struct </span><a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">struct </span><a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446"> 104</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a779237ffb78ee935518b83e8ab8a35dc"> 106</a></span>  <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a779237ffb78ee935518b83e8ab8a35dc">SDL_YUV_CONVERSION_JPEG</a>, </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a58058f0ed3146de73b031e256aa2aaaa"> 107</a></span>  <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a58058f0ed3146de73b031e256aa2aaaa">SDL_YUV_CONVERSION_BT601</a>, </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a806aeb86ff618a298206cbf921c0202a"> 108</a></span>  <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a806aeb86ff618a298206cbf921c0202a">SDL_YUV_CONVERSION_BT709</a>, </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446acbf0cb1b718195c6c0960d4471a5ed0a"> 109</a></span>  <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446acbf0cb1b718195c6c0960d4471a5ed0a">SDL_YUV_CONVERSION_AUTOMATIC</a> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> } <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446">SDL_YUV_CONVERSION_MODE</a>;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL <a class="code" href="SDL__surface_8h.html#aac106bf796c828587cce76cb847d11ae">SDL_CreateRGBSurface</a></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  (Uint32 flags, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">int</span> depth,</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/* !!! FIXME for 2.1: why does this ask for depth? Format provides that. */</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL SDL_CreateRGBSurfaceWithFormat</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  (Uint32 flags, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">int</span> depth, Uint32 format);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL SDL_CreateRGBSurfaceFrom(<span class="keywordtype">void</span> *pixels,</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">int</span> width,</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordtype">int</span> height,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">int</span> depth,</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">int</span> <a class="code" href="structSDL__Surface.html#a5fa37325d77d65b2ed64ffc7cd01bb6c">pitch</a>,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  Uint32 Rmask,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  Uint32 Gmask,</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  Uint32 Bmask,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  Uint32 Amask);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL SDL_CreateRGBSurfaceWithFormatFrom</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  (<span class="keywordtype">void</span> *pixels, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">int</span> depth, <span class="keywordtype">int</span> <a class="code" href="structSDL__Surface.html#a5fa37325d77d65b2ed64ffc7cd01bb6c">pitch</a>, Uint32 format);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL SDL_FreeSurface(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a72c780465293acb1f586995943422a17">SDL_SetSurfacePalette</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="structSDL__Palette.html">SDL_Palette</a> * palette);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a3d1da1c7ecdaa461fac51a10785f5077">SDL_LockSurface</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a56b93f51358b55d7fc213a3ba9b02c24">SDL_UnlockSurface</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL <a class="code" href="SDL__surface_8h.html#aac1d1435b9fa8523d699c3a33264d559">SDL_LoadBMP_RW</a>(<a class="code" href="structSDL__RWops.html">SDL_RWops</a> * src,</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordtype">int</span> freesrc);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#ae63aa646481001be542220a8733c3ce0"> 201</a></span> <span class="preprocessor">#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#aadc126a4edeafb5033d5e942cf32db6a">SDL_SaveBMP_RW</a></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface, <a class="code" href="structSDL__RWops.html">SDL_RWops</a> * dst, <span class="keywordtype">int</span> freedst);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#a425e7a69acbdf2bd9ba46d332d917320"> 224</a></span> <span class="preprocessor">#define SDL_SaveBMP(surface, file) \</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="preprocessor"> SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#ae2f6d70b8071e83e0c84241dbdcd3a3b">SDL_SetSurfaceRLE</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">int</span> flag);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a4cbe831b210dc900cb93101352357b73">SDL_SetColorKey</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">int</span> flag, Uint32 key);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="keyword">extern</span> DECLSPEC SDL_bool SDLCALL <a class="code" href="SDL__surface_8h.html#a31ca900bd39b6805fc8586472be18c90">SDL_HasColorKey</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a2ff80a244bad20f1c4fa85adf1e1deb9">SDL_GetColorKey</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  Uint32 * key);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a4edf978396e3f562d43c672630e0ca71">SDL_SetSurfaceColorMod</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  Uint8 r, Uint8 g, Uint8 b);</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a5db1ae32b7884b598d86424e205c3a86">SDL_GetSurfaceColorMod</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  Uint8 * r, Uint8 * g,</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  Uint8 * b);</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a0035f0239f0588d16c57aff7672be174">SDL_SetSurfaceAlphaMod</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  Uint8 alpha);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a09a99bb24420857e85071e39607678f6">SDL_GetSurfaceAlphaMod</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  Uint8 * alpha);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a35f5b3b64c503c4a8da01566f62976a9">SDL_SetSurfaceBlendMode</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="SDL__blendmode_8h.html#a850d3c67a878fd6698a1c8dbb1eabf1e">SDL_BlendMode</a> blendMode);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a95570c617879f45bf7e2e4d330534f6b">SDL_GetSurfaceBlendMode</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <a class="code" href="SDL__blendmode_8h.html#a850d3c67a878fd6698a1c8dbb1eabf1e">SDL_BlendMode</a> *blendMode);</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="keyword">extern</span> DECLSPEC SDL_bool SDLCALL <a class="code" href="SDL__surface_8h.html#a6cf2c30be55f51fe9e4faf97e3f8d08b">SDL_SetClipRect</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * rect);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a7d7f71b94748a1b0db3b5b769834ed27">SDL_GetClipRect</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface,</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * rect);</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span> </div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="comment">/*</span></div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="comment"> * Creates a new surface identical to the existing surface</span></div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="comment"> */</span></div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL SDL_DuplicateSurface(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * surface);</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span> </div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL <a class="code" href="SDL__surface_8h.html#a65fb480a0ac01b69f6999f48a6fd985b">SDL_ConvertSurface</a></div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <span class="keyword">const</span> <a class="code" href="structSDL__PixelFormat.html">SDL_PixelFormat</a> * fmt, Uint32 flags);</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="structSDL__Surface.html">SDL_Surface</a> *SDLCALL SDL_ConvertSurfaceFormat</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, Uint32 pixel_format, Uint32 flags);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a339c5728a1181e2d6334ad07e1e84440">SDL_ConvertPixels</a>(<span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height,</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  Uint32 src_format,</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keyword">const</span> <span class="keywordtype">void</span> * src, <span class="keywordtype">int</span> src_pitch,</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  Uint32 dst_format,</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keywordtype">void</span> * dst, <span class="keywordtype">int</span> dst_pitch);</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a98b3595458c6271303d6470cb2b2c721">SDL_FillRect</a></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * rect, Uint32 color);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL SDL_FillRects</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * rects, <span class="keywordtype">int</span> count, Uint32 color);</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div><div class="line"><a name="l00484"></a><span class="lineno"><a class="line" href="SDL__surface_8h.html#aad8d7ebe5e953593cb7d91373e73ba9a"> 484</a></span> <span class="preprocessor">#define SDL_BlitSurface SDL_UpperBlit</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#ac418c4404813eeb32f4e1b24f9deae96">SDL_UpperBlit</a></div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> </div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a82bd1c0e0886d77e287207fe6351bf87">SDL_LowerBlit</a></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#aee44fe7d5dba376a971793d70ffcf55c">SDL_SoftStretch</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src,</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst,</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span> </div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="preprocessor">#define SDL_BlitScaled SDL_UpperBlitScaled</span></div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span> </div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a90ac01634e9ee33764fcf5ec7bc43c46">SDL_UpperBlitScaled</a></div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <span class="keyword">const</span> <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a5c6b2f06726600d41ff75ff259d4383b">SDL_LowerBlitScaled</a></div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  (<a class="code" href="structSDL__Surface.html">SDL_Surface</a> * src, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * srcrect,</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <a class="code" href="structSDL__Surface.html">SDL_Surface</a> * dst, <a class="code" href="structSDL__Rect.html">SDL_Rect</a> * dstrect);</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> </div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__surface_8h.html#a35875bf88b2d78e0990f5f13ef1cd0e1">SDL_SetYUVConversionMode</a>(<a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446">SDL_YUV_CONVERSION_MODE</a> mode);</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446">SDL_YUV_CONVERSION_MODE</a> SDLCALL <a class="code" href="SDL__surface_8h.html#a61d2c4412423e5d1a0e3426ee678d262">SDL_GetYUVConversionMode</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span> </div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446">SDL_YUV_CONVERSION_MODE</a> SDLCALL <a class="code" href="SDL__surface_8h.html#a1cfad98219e074988d0c5731e304cda4">SDL_GetYUVConversionModeForResolution</a>(<span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="comment">/* Ends C function definitions when using C++ */</span></div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> }</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="preprocessor">#include "<a class="code" href="close__code_8h.html">close_code.h</a>"</span></div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="preprocessor">#endif </span><span class="comment">/* SDL_surface_h_ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span> </div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="comment">/* vi: set ts=4 sw=4 expandtab: */</span></div><div class="ttc" id="SDL__surface_8h_html_a00a564600207cec7a2cb50a6e20d2446a779237ffb78ee935518b83e8ab8a35dc"><div class="ttname"><a href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a779237ffb78ee935518b83e8ab8a35dc">SDL_YUV_CONVERSION_JPEG</a></div><div class="ttdef"><b>Definition:</b> SDL_surface.h:106</div></div> <div class="ttc" id="SDL__blendmode_8h_html"><div class="ttname"><a href="SDL__blendmode_8h.html">SDL_blendmode.h</a></div></div> <div class="ttc" id="SDL__surface_8h_html_aac1d1435b9fa8523d699c3a33264d559"><div class="ttname"><a href="SDL__surface_8h.html#aac1d1435b9fa8523d699c3a33264d559">SDL_LoadBMP_RW</a></div><div class="ttdeci">DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops *src, int freesrc)</div></div> <div class="ttc" id="structSDL__Surface_html_a5fa37325d77d65b2ed64ffc7cd01bb6c"><div class="ttname"><a href="structSDL__Surface.html#a5fa37325d77d65b2ed64ffc7cd01bb6c">SDL_Surface::pitch</a></div><div class="ttdeci">int pitch</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:75</div></div> <div class="ttc" id="structSDL__Surface_html_a0afacfb933b54a9af0846a307a6924fb"><div class="ttname"><a href="structSDL__Surface.html#a0afacfb933b54a9af0846a307a6924fb">SDL_Surface::lock_data</a></div><div class="ttdeci">void * lock_data</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:83</div></div> <div class="ttc" id="SDL__surface_8h_html_ab2d7366d99a08693d476b98760690947"><div class="ttname"><a href="SDL__surface_8h.html#ab2d7366d99a08693d476b98760690947">SDL_blit</a></div><div class="ttdeci">int(SDLCALL * SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, struct SDL_Surface *dst, SDL_Rect *dstrect)</div><div class="ttdoc">The type of function used for surface blitting functions.</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:98</div></div> <div class="ttc" id="SDL__surface_8h_html_a00a564600207cec7a2cb50a6e20d2446a58058f0ed3146de73b031e256aa2aaaa"><div class="ttname"><a href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a58058f0ed3146de73b031e256aa2aaaa">SDL_YUV_CONVERSION_BT601</a></div><div class="ttdef"><b>Definition:</b> SDL_surface.h:107</div></div> <div class="ttc" id="SDL__surface_8h_html_a65fb480a0ac01b69f6999f48a6fd985b"><div class="ttname"><a href="SDL__surface_8h.html#a65fb480a0ac01b69f6999f48a6fd985b">SDL_ConvertSurface</a></div><div class="ttdeci">DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface(SDL_Surface *src, const SDL_PixelFormat *fmt, Uint32 flags)</div></div> <div class="ttc" id="SDL__surface_8h_html_a95570c617879f45bf7e2e4d330534f6b"><div class="ttname"><a href="SDL__surface_8h.html#a95570c617879f45bf7e2e4d330534f6b">SDL_GetSurfaceBlendMode</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode *blendMode)</div><div class="ttdoc">Get the blend mode used for blit operations.</div></div> <div class="ttc" id="SDL__surface_8h_html_a98b3595458c6271303d6470cb2b2c721"><div class="ttname"><a href="SDL__surface_8h.html#a98b3595458c6271303d6470cb2b2c721">SDL_FillRect</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_FillRect(SDL_Surface *dst, const SDL_Rect *rect, Uint32 color)</div></div> <div class="ttc" id="SDL__surface_8h_html_a31ca900bd39b6805fc8586472be18c90"><div class="ttname"><a href="SDL__surface_8h.html#a31ca900bd39b6805fc8586472be18c90">SDL_HasColorKey</a></div><div class="ttdeci">DECLSPEC SDL_bool SDLCALL SDL_HasColorKey(SDL_Surface *surface)</div><div class="ttdoc">Returns whether the surface has a color key.</div></div> <div class="ttc" id="SDL__surface_8h_html_a339c5728a1181e2d6334ad07e1e84440"><div class="ttname"><a href="SDL__surface_8h.html#a339c5728a1181e2d6334ad07e1e84440">SDL_ConvertPixels</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)</div><div class="ttdoc">Copy a block of pixels of one format to another format.</div></div> <div class="ttc" id="SDL__surface_8h_html_a72c780465293acb1f586995943422a17"><div class="ttname"><a href="SDL__surface_8h.html#a72c780465293acb1f586995943422a17">SDL_SetSurfacePalette</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette)</div><div class="ttdoc">Set the palette used by a surface.</div></div> <div class="ttc" id="SDL__surface_8h_html_a5db1ae32b7884b598d86424e205c3a86"><div class="ttname"><a href="SDL__surface_8h.html#a5db1ae32b7884b598d86424e205c3a86">SDL_GetSurfaceColorMod</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface, Uint8 *r, Uint8 *g, Uint8 *b)</div><div class="ttdoc">Get the additional color value used in blit operations.</div></div> <div class="ttc" id="SDL__surface_8h_html_a35875bf88b2d78e0990f5f13ef1cd0e1"><div class="ttname"><a href="SDL__surface_8h.html#a35875bf88b2d78e0990f5f13ef1cd0e1">SDL_SetYUVConversionMode</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_MODE mode)</div><div class="ttdoc">Set the YUV conversion mode.</div></div> <div class="ttc" id="SDL__surface_8h_html_a5c6b2f06726600d41ff75ff259d4383b"><div class="ttname"><a href="SDL__surface_8h.html#a5c6b2f06726600d41ff75ff259d4383b">SDL_LowerBlitScaled</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_LowerBlitScaled(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</div></div> <div class="ttc" id="SDL__rect_8h_html"><div class="ttname"><a href="SDL__rect_8h.html">SDL_rect.h</a></div></div> <div class="ttc" id="structSDL__Surface_html_a03d10628a359c0674f5ceffd574f1641"><div class="ttname"><a href="structSDL__Surface.html#a03d10628a359c0674f5ceffd574f1641">SDL_Surface::refcount</a></div><div class="ttdeci">int refcount</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:92</div></div> <div class="ttc" id="structSDL__Surface_html_a5022edaeea1c0a055fa5d6dccba41de2"><div class="ttname"><a href="structSDL__Surface.html#a5022edaeea1c0a055fa5d6dccba41de2">SDL_Surface::locked</a></div><div class="ttdeci">int locked</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:82</div></div> <div class="ttc" id="SDL__surface_8h_html_a00a564600207cec7a2cb50a6e20d2446acbf0cb1b718195c6c0960d4471a5ed0a"><div class="ttname"><a href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446acbf0cb1b718195c6c0960d4471a5ed0a">SDL_YUV_CONVERSION_AUTOMATIC</a></div><div class="ttdef"><b>Definition:</b> SDL_surface.h:109</div></div> <div class="ttc" id="structSDL__Palette_html"><div class="ttname"><a href="structSDL__Palette.html">SDL_Palette</a></div><div class="ttdef"><b>Definition:</b> SDL_pixels.h:304</div></div> <div class="ttc" id="begin__code_8h_html"><div class="ttname"><a href="begin__code_8h.html">begin_code.h</a></div></div> <div class="ttc" id="structSDL__Rect_html"><div class="ttname"><a href="structSDL__Rect.html">SDL_Rect</a></div><div class="ttdoc">A rectangle, with the origin at the upper left (integer).</div><div class="ttdef"><b>Definition:</b> SDL_rect.h:77</div></div> <div class="ttc" id="SDL__rwops_8h_html"><div class="ttname"><a href="SDL__rwops_8h.html">SDL_rwops.h</a></div></div> <div class="ttc" id="structSDL__Surface_html_a86d78b665d5dfd7aa1dd9696b067641b"><div class="ttname"><a href="structSDL__Surface.html#a86d78b665d5dfd7aa1dd9696b067641b">SDL_Surface::flags</a></div><div class="ttdeci">Uint32 flags</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:72</div></div> <div class="ttc" id="SDL__surface_8h_html_aee44fe7d5dba376a971793d70ffcf55c"><div class="ttname"><a href="SDL__surface_8h.html#aee44fe7d5dba376a971793d70ffcf55c">SDL_SoftStretch</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect)</div><div class="ttdoc">Perform a fast, low quality, stretch blit between two surfaces of the same pixel format.</div></div> <div class="ttc" id="SDL__surface_8h_html_a1cfad98219e074988d0c5731e304cda4"><div class="ttname"><a href="SDL__surface_8h.html#a1cfad98219e074988d0c5731e304cda4">SDL_GetYUVConversionModeForResolution</a></div><div class="ttdeci">DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResolution(int width, int height)</div><div class="ttdoc">Get the YUV conversion mode, returning the correct mode for the resolution when the current conversio...</div></div> <div class="ttc" id="SDL__surface_8h_html_a56b93f51358b55d7fc213a3ba9b02c24"><div class="ttname"><a href="SDL__surface_8h.html#a56b93f51358b55d7fc213a3ba9b02c24">SDL_UnlockSurface</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface)</div></div> <div class="ttc" id="SDL__stdinc_8h_html"><div class="ttname"><a href="SDL__stdinc_8h.html">SDL_stdinc.h</a></div></div> <div class="ttc" id="structSDL__Surface_html"><div class="ttname"><a href="structSDL__Surface.html">SDL_Surface</a></div><div class="ttdoc">A collection of pixels used in software blitting.</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:70</div></div> <div class="ttc" id="structSDL__Surface_html_ae66d973dcb9b57cb34815892e1ee1f31"><div class="ttname"><a href="structSDL__Surface.html#ae66d973dcb9b57cb34815892e1ee1f31">SDL_Surface::userdata</a></div><div class="ttdeci">void * userdata</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:79</div></div> <div class="ttc" id="SDL__surface_8h_html_a82bd1c0e0886d77e287207fe6351bf87"><div class="ttname"><a href="SDL__surface_8h.html#a82bd1c0e0886d77e287207fe6351bf87">SDL_LowerBlit</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_LowerBlit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</div></div> <div class="ttc" id="SDL__surface_8h_html_a00a564600207cec7a2cb50a6e20d2446"><div class="ttname"><a href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446">SDL_YUV_CONVERSION_MODE</a></div><div class="ttdeci">SDL_YUV_CONVERSION_MODE</div><div class="ttdoc">The formula used for converting between YUV and RGB.</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:104</div></div> <div class="ttc" id="close__code_8h_html"><div class="ttname"><a href="close__code_8h.html">close_code.h</a></div></div> <div class="ttc" id="SDL__surface_8h_html_a6cf2c30be55f51fe9e4faf97e3f8d08b"><div class="ttname"><a href="SDL__surface_8h.html#a6cf2c30be55f51fe9e4faf97e3f8d08b">SDL_SetClipRect</a></div><div class="ttdeci">DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect)</div></div> <div class="ttc" id="structSDL__Surface_html_abd9597e0e084b8ef33fe0397bc26d911"><div class="ttname"><a href="structSDL__Surface.html#abd9597e0e084b8ef33fe0397bc26d911">SDL_Surface::pixels</a></div><div class="ttdeci">void * pixels</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:76</div></div> <div class="ttc" id="structSDL__Surface_html_af33bcf87a1f5e10a99b3c7e8626b38c8"><div class="ttname"><a href="structSDL__Surface.html#af33bcf87a1f5e10a99b3c7e8626b38c8">SDL_Surface::h</a></div><div class="ttdeci">int h</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:74</div></div> <div class="ttc" id="SDL__surface_8h_html_a35f5b3b64c503c4a8da01566f62976a9"><div class="ttname"><a href="SDL__surface_8h.html#a35f5b3b64c503c4a8da01566f62976a9">SDL_SetSurfaceBlendMode</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode blendMode)</div><div class="ttdoc">Set the blend mode used for blit operations.</div></div> <div class="ttc" id="structSDL__Surface_html_a0a90721f947c10c3b79e02ccb419ca62"><div class="ttname"><a href="structSDL__Surface.html#a0a90721f947c10c3b79e02ccb419ca62">SDL_Surface::format</a></div><div class="ttdeci">SDL_PixelFormat * format</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:73</div></div> <div class="ttc" id="SDL__pixels_8h_html"><div class="ttname"><a href="SDL__pixels_8h.html">SDL_pixels.h</a></div></div> <div class="ttc" id="SDL__surface_8h_html_a00a564600207cec7a2cb50a6e20d2446a806aeb86ff618a298206cbf921c0202a"><div class="ttname"><a href="SDL__surface_8h.html#a00a564600207cec7a2cb50a6e20d2446a806aeb86ff618a298206cbf921c0202a">SDL_YUV_CONVERSION_BT709</a></div><div class="ttdef"><b>Definition:</b> SDL_surface.h:108</div></div> <div class="ttc" id="SDL__surface_8h_html_ac418c4404813eeb32f4e1b24f9deae96"><div class="ttname"><a href="SDL__surface_8h.html#ac418c4404813eeb32f4e1b24f9deae96">SDL_UpperBlit</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</div></div> <div class="ttc" id="SDL__surface_8h_html_a09a99bb24420857e85071e39607678f6"><div class="ttname"><a href="SDL__surface_8h.html#a09a99bb24420857e85071e39607678f6">SDL_GetSurfaceAlphaMod</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Uint8 *alpha)</div><div class="ttdoc">Get the additional alpha value used in blit operations.</div></div> <div class="ttc" id="SDL__surface_8h_html_a90ac01634e9ee33764fcf5ec7bc43c46"><div class="ttname"><a href="SDL__surface_8h.html#a90ac01634e9ee33764fcf5ec7bc43c46">SDL_UpperBlitScaled</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_UpperBlitScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)</div></div> <div class="ttc" id="structSDL__Surface_html_aa9a0da3b38261dad6cf0cc4e3bb5b0c3"><div class="ttname"><a href="structSDL__Surface.html#aa9a0da3b38261dad6cf0cc4e3bb5b0c3">SDL_Surface::clip_rect</a></div><div class="ttdeci">SDL_Rect clip_rect</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:86</div></div> <div class="ttc" id="SDL__surface_8h_html_a3d1da1c7ecdaa461fac51a10785f5077"><div class="ttname"><a href="SDL__surface_8h.html#a3d1da1c7ecdaa461fac51a10785f5077">SDL_LockSurface</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface *surface)</div><div class="ttdoc">Sets up a surface for directly accessing the pixels.</div></div> <div class="ttc" id="SDL__blendmode_8h_html_a850d3c67a878fd6698a1c8dbb1eabf1e"><div class="ttname"><a href="SDL__blendmode_8h.html#a850d3c67a878fd6698a1c8dbb1eabf1e">SDL_BlendMode</a></div><div class="ttdeci">SDL_BlendMode</div><div class="ttdoc">The blend mode used in SDL_RenderCopy() and drawing operations.</div><div class="ttdef"><b>Definition:</b> SDL_blendmode.h:40</div></div> <div class="ttc" id="SDL__surface_8h_html_a32471ad028ae3d2a132302bc5efcb1ee"><div class="ttname"><a href="SDL__surface_8h.html#a32471ad028ae3d2a132302bc5efcb1ee">SDL_Surface</a></div><div class="ttdeci">struct SDL_Surface SDL_Surface</div><div class="ttdoc">A collection of pixels used in software blitting.</div></div> <div class="ttc" id="SDL__surface_8h_html_aadc126a4edeafb5033d5e942cf32db6a"><div class="ttname"><a href="SDL__surface_8h.html#aadc126a4edeafb5033d5e942cf32db6a">SDL_SaveBMP_RW</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SaveBMP_RW(SDL_Surface *surface, SDL_RWops *dst, int freedst)</div></div> <div class="ttc" id="SDL__surface_8h_html_a2ff80a244bad20f1c4fa85adf1e1deb9"><div class="ttname"><a href="SDL__surface_8h.html#a2ff80a244bad20f1c4fa85adf1e1deb9">SDL_GetColorKey</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_GetColorKey(SDL_Surface *surface, Uint32 *key)</div><div class="ttdoc">Gets the color key (transparent pixel) in a blittable surface.</div></div> <div class="ttc" id="SDL__surface_8h_html_ae2f6d70b8071e83e0c84241dbdcd3a3b"><div class="ttname"><a href="SDL__surface_8h.html#ae2f6d70b8071e83e0c84241dbdcd3a3b">SDL_SetSurfaceRLE</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface *surface, int flag)</div><div class="ttdoc">Sets the RLE acceleration hint for a surface.</div></div> <div class="ttc" id="SDL__surface_8h_html_aac106bf796c828587cce76cb847d11ae"><div class="ttname"><a href="SDL__surface_8h.html#aac106bf796c828587cce76cb847d11ae">SDL_CreateRGBSurface</a></div><div class="ttdeci">DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)</div></div> <div class="ttc" id="SDL__surface_8h_html_a61d2c4412423e5d1a0e3426ee678d262"><div class="ttname"><a href="SDL__surface_8h.html#a61d2c4412423e5d1a0e3426ee678d262">SDL_GetYUVConversionMode</a></div><div class="ttdeci">DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionMode(void)</div><div class="ttdoc">Get the YUV conversion mode.</div></div> <div class="ttc" id="structSDL__Surface_html_a8c1ecad399b0d4f525b1a53b6ee9393f"><div class="ttname"><a href="structSDL__Surface.html#a8c1ecad399b0d4f525b1a53b6ee9393f">SDL_Surface::map</a></div><div class="ttdeci">struct SDL_BlitMap * map</div><div class="ttdef"><b>Definition:</b> SDL_surface.h:89</div></div> <div class="ttc" id="SDL__surface_8h_html_a7d7f71b94748a1b0db3b5b769834ed27"><div class="ttname"><a href="SDL__surface_8h.html#a7d7f71b94748a1b0db3b5b769834ed27">SDL_GetClipRect</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect)</div></div> <div class="ttc" id="structSDL__PixelFormat_html"><div class="ttname"><a href="structSDL__PixelFormat.html">SDL_PixelFormat</a></div><div class="ttdef"><b>Definition:</b> SDL_pixels.h:315</div></div> <div class="ttc" id="structSDL__RWops_html"><div class="ttname"><a href="structSDL__RWops.html">SDL_RWops</a></div><div class="ttdef"><b>Definition:</b> SDL_rwops.h:52</div></div> <div class="ttc" id="SDL__surface_8h_html_a0035f0239f0588d16c57aff7672be174"><div class="ttname"><a href="SDL__surface_8h.html#a0035f0239f0588d16c57aff7672be174">SDL_SetSurfaceAlphaMod</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface, Uint8 alpha)</div><div class="ttdoc">Set an additional alpha value used in blit operations.</div></div> <div class="ttc" id="SDL__surface_8h_html_a4cbe831b210dc900cb93101352357b73"><div class="ttname"><a href="SDL__surface_8h.html#a4cbe831b210dc900cb93101352357b73">SDL_SetColorKey</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface *surface, int flag, Uint32 key)</div><div class="ttdoc">Sets the color key (transparent pixel) in a blittable surface.</div></div> <div class="ttc" id="SDL__surface_8h_html_a4edf978396e3f562d43c672630e0ca71"><div class="ttname"><a href="SDL__surface_8h.html#a4edf978396e3f562d43c672630e0ca71">SDL_SetSurfaceColorMod</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b)</div><div class="ttdoc">Set an additional color value used in blit operations.</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.15 </small></address> </body> </html>