cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

screenshot_8c.html (7493B)


      1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2<html xmlns="http://www.w3.org/1999/xhtml">
      3<head>
      4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      6<meta name="generator" content="Doxygen 1.8.4"/>
      7<title>SDL Visual Test: C:/Users/DELL/Work/sdlvisualtest/visualtest/src/screenshot.c File Reference</title>
      8<link href="tabs.css" rel="stylesheet" type="text/css"/>
      9<script type="text/javascript" src="jquery.js"></script>
     10<script type="text/javascript" src="dynsections.js"></script>
     11<link href="search/search.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="search/search.js"></script>
     13<script type="text/javascript">
     14  $(document).ready(function() { searchBox.OnSelectItem(0); });
     15</script>
     16<link href="doxygen.css" rel="stylesheet" type="text/css" />
     17</head>
     18<body>
     19<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     20<div id="titlearea">
     21<table cellspacing="0" cellpadding="0">
     22 <tbody>
     23 <tr style="height: 56px;">
     24  <td style="padding-left: 0.5em;">
     25   <div id="projectname">SDL Visual Test
     26   </div>
     27  </td>
     28 </tr>
     29 </tbody>
     30</table>
     31</div>
     32<!-- end header part -->
     33<!-- Generated by Doxygen 1.8.4 -->
     34<script type="text/javascript">
     35var searchBox = new SearchBox("searchBox", "search",false,'Search');
     36</script>
     37  <div id="navrow1" class="tabs">
     38    <ul class="tablist">
     39      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
     40      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
     41      <li class="current"><a href="files.html"><span>Files</span></a></li>
     42      <li>
     43        <div id="MSearchBox" class="MSearchBoxInactive">
     44        <span class="left">
     45          <img id="MSearchSelect" src="search/mag_sel.png"
     46               onmouseover="return searchBox.OnSearchSelectShow()"
     47               onmouseout="return searchBox.OnSearchSelectHide()"
     48               alt=""/>
     49          <input type="text" id="MSearchField" value="Search" accesskey="S"
     50               onfocus="searchBox.OnSearchFieldFocus(true)" 
     51               onblur="searchBox.OnSearchFieldFocus(false)" 
     52               onkeyup="searchBox.OnSearchFieldChange(event)"/>
     53          </span><span class="right">
     54            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
     55          </span>
     56        </div>
     57      </li>
     58    </ul>
     59  </div>
     60  <div id="navrow2" class="tabs2">
     61    <ul class="tablist">
     62      <li><a href="files.html"><span>File&#160;List</span></a></li>
     63      <li><a href="globals.html"><span>Globals</span></a></li>
     64    </ul>
     65  </div>
     66<!-- window showing the filter options -->
     67<div id="MSearchSelectWindow"
     68     onmouseover="return searchBox.OnSearchSelectShow()"
     69     onmouseout="return searchBox.OnSearchSelectHide()"
     70     onkeydown="return searchBox.OnSearchSelectKey(event)">
     71<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>
     72
     73<!-- iframe showing the search results (closed by default) -->
     74<div id="MSearchResultsWindow">
     75<iframe src="javascript:void(0)" frameborder="0" 
     76        name="MSearchResults" id="MSearchResults">
     77</iframe>
     78</div>
     79
     80<div id="nav-path" class="navpath">
     81  <ul>
     82<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
     83</div>
     84</div><!-- top -->
     85<div class="header">
     86  <div class="summary">
     87<a href="#func-members">Functions</a>  </div>
     88  <div class="headertitle">
     89<div class="title">screenshot.c File Reference</div>  </div>
     90</div><!--header-->
     91<div class="contents">
     92<div class="textblock"><code>#include &quot;SDL_visualtest_mischelper.h&quot;</code><br/>
     93<code>#include &lt;SDL_test.h&gt;</code><br/>
     94</div><table class="memberdecls">
     95<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
     96Functions</h2></td></tr>
     97<tr class="memitem:ac7b5335651144961676abc2116c38299"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screenshot_8c.html#ac7b5335651144961676abc2116c38299">SDLVisualTest_VerifyScreenshots</a> (char *args, char *test_dir, char *verify_dir)</td></tr>
     98<tr class="separator:ac7b5335651144961676abc2116c38299"><td class="memSeparator" colspan="2">&#160;</td></tr>
     99</table>
    100<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    101<div class="textblock"><p>Source file for the screenshot API. </p>
    102</div><h2 class="groupheader">Function Documentation</h2>
    103<a class="anchor" id="ac7b5335651144961676abc2116c38299"></a>
    104<div class="memitem">
    105<div class="memproto">
    106      <table class="memname">
    107        <tr>
    108          <td class="memname">int SDLVisualTest_VerifyScreenshots </td>
    109          <td>(</td>
    110          <td class="paramtype">char *&#160;</td>
    111          <td class="paramname"><em>args</em>, </td>
    112        </tr>
    113        <tr>
    114          <td class="paramkey"></td>
    115          <td></td>
    116          <td class="paramtype">char *&#160;</td>
    117          <td class="paramname"><em>test_dir</em>, </td>
    118        </tr>
    119        <tr>
    120          <td class="paramkey"></td>
    121          <td></td>
    122          <td class="paramtype">char *&#160;</td>
    123          <td class="paramname"><em>verify_dir</em>&#160;</td>
    124        </tr>
    125        <tr>
    126          <td></td>
    127          <td>)</td>
    128          <td></td><td></td>
    129        </tr>
    130      </table>
    131</div><div class="memdoc">
    132<p>Compare a screenshot taken previously with SUT arguments <code>args</code> that is located in <code>test_dir</code> with a verification image that is located in <code>verify_dir</code>.</p>
    133<dl class="section return"><dt>Returns</dt><dd>-1 on failure, 0 if the images were not equal, 1 if the images are equal and 2 if the verification image is not present. </dd></dl>
    134
    135</div>
    136</div>
    137</div><!-- contents -->
    138<!-- start footer part -->
    139<hr class="footer"/><address class="footer"><small>
    140Generated on Thu Sep 26 2013 00:18:24 for SDL Visual Test by &#160;<a href="http://www.doxygen.org/index.html">
    141<img class="footer" src="doxygen.png" alt="doxygen"/>
    142</a> 1.8.4
    143</small></address>
    144</body>
    145</html>