diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-31 14:46:27 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-31 14:46:27 +0000 |
commit | 8898ad9b25fca6afe2374d293a981db02a83d7e9 (patch) | |
tree | 8041e6eb069b6da70b83e82efdb998662140e716 /Doc/doxygen/html/_bmp_8h_source.html | |
parent | 985b945e4b49b5d5a1394e93fc3a95289c05e449 (diff) | |
download | starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.zip starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.tar.gz starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.tar.bz2 |
Committing the documentation to svn to have it accessible online
Diffstat (limited to 'Doc/doxygen/html/_bmp_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_bmp_8h_source.html | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_bmp_8h_source.html b/Doc/doxygen/html/_bmp_8h_source.html new file mode 100644 index 0000000..dee851f --- /dev/null +++ b/Doc/doxygen/html/_bmp_8h_source.html @@ -0,0 +1,193 @@ +<!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"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/Bmp.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="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</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 style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_bmp_8h.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></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">Bmp.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_bmp_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">/* Project nGenEx</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</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"> SUBSYSTEM: nGenEx.lib</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: Bmp.h</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</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"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> BMP image file loader</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef BMP_H</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define BMP_H</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="_bmp_8h.html#abc5c98fcc1211af2b80116dd6e0a035da77b424045dac547c77dc33f08a97b8c5"> 20</a></span> <span class="keyword">enum</span> { <a class="code" href="_bmp_8h.html#abc5c98fcc1211af2b80116dd6e0a035da77b424045dac547c77dc33f08a97b8c5">BMP_OK</a>, <a class="code" href="_bmp_8h.html#abc5c98fcc1211af2b80116dd6e0a035da1c4652a0f57ff9ff9cbf0fbcf5350f70">BMP_NOMEM</a>, <a class="code" href="_bmp_8h.html#abc5c98fcc1211af2b80116dd6e0a035dabcba9e76d4311d0c2c449732e97c2c51">BMP_INVALID</a>, <a class="code" href="_bmp_8h.html#abc5c98fcc1211af2b80116dd6e0a035daeb605c91036cb5a8d9acddf99e85b840">BMP_NOFILE</a> };</div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> +<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html"> 22</a></span> <span class="keyword">struct </span><a class="code" href="struct_bmp_file_header.html">BmpFileHeader</a></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html#a25e6bb0415b53b8948221262fa586e70"> 24</a></span>  WORD <a class="code" href="struct_bmp_file_header.html#a25e6bb0415b53b8948221262fa586e70">type</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html#a78e046a46bf674ab2e9790d74bb370dd"> 25</a></span>  DWORD <a class="code" href="struct_bmp_file_header.html#a78e046a46bf674ab2e9790d74bb370dd">size</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html#ab0d480cf676b4d251188237edb9d801b"> 26</a></span>  WORD <a class="code" href="struct_bmp_file_header.html#ab0d480cf676b4d251188237edb9d801b">rsvd1</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html#a2e8a6bc3ce40b6af8fab6930cea3a83f"> 27</a></span>  WORD <a class="code" href="struct_bmp_file_header.html#a2e8a6bc3ce40b6af8fab6930cea3a83f">rsvd2</a>;</div> +<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="struct_bmp_file_header.html#ab4158cf0baa3b13af589ef19cf8fdbf1"> 28</a></span>  DWORD <a class="code" href="struct_bmp_file_header.html#ab4158cf0baa3b13af589ef19cf8fdbf1">offset</a>;</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</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"><a class="code" href="struct_bmp_info_header.html"> 31</a></span> <span class="keyword">struct </span><a class="code" href="struct_bmp_info_header.html">BmpInfoHeader</a></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div> +<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a0480cb08f7a9a289406d27a44e018484"> 33</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a0480cb08f7a9a289406d27a44e018484">hdr_size</a>;</div> +<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a898560ad4bd252ce88c6d124500b1ac3"> 34</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a898560ad4bd252ce88c6d124500b1ac3">width</a>;</div> +<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a0799fce6a133ae66b604918e45b23c6f"> 35</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a0799fce6a133ae66b604918e45b23c6f">height</a>;</div> +<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a24eef68bbd5ae81d1c54e92048d7745e"> 36</a></span>  WORD <a class="code" href="struct_bmp_info_header.html#a24eef68bbd5ae81d1c54e92048d7745e">planes</a>;</div> +<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#ab8f0ff45c1ab9d2002ae1252ea5c01cc"> 37</a></span>  WORD <a class="code" href="struct_bmp_info_header.html#ab8f0ff45c1ab9d2002ae1252ea5c01cc">bit_count</a>;</div> +<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a074816ad59d2c0e464b12f95d4168da6"> 38</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a074816ad59d2c0e464b12f95d4168da6">compression</a>;</div> +<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a4bec72219e4569774837f9fe5c8973e3"> 39</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a4bec72219e4569774837f9fe5c8973e3">img_size</a>;</div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#aa9d927eaeea1c41074930642cc061dd6"> 40</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#aa9d927eaeea1c41074930642cc061dd6">x_pixels_per_meter</a>;</div> +<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a1e838447ac0b75b950d82c7ae2d36253"> 41</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a1e838447ac0b75b950d82c7ae2d36253">y_pixels_per_meter</a>;</div> +<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#a21f829d0a2102dcc7e9eed6b5bbef4e1"> 42</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#a21f829d0a2102dcc7e9eed6b5bbef4e1">colors_used</a>;</div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="struct_bmp_info_header.html#af485cee2ffe0554822533c3d20c118b7"> 43</a></span>  DWORD <a class="code" href="struct_bmp_info_header.html#af485cee2ffe0554822533c3d20c118b7">colors_important</a>;</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> };</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="_bmp_8h.html#adaab4b159029194661acd3e8f5ebe2b0"> 46</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="_bmp_8h.html#adaab4b159029194661acd3e8f5ebe2b0">BMP_FILE_HDR_SIZE</a> = 14;</div> +<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="_bmp_8h.html#a9185e31a977af29c8953c9c8701b5930"> 47</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="_bmp_8h.html#a9185e31a977af29c8953c9c8701b5930">BMP_INFO_HDR_SIZE</a> = 40;</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div> +<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="struct_bmp_image.html"> 51</a></span> <span class="keyword">struct </span><a class="code" href="struct_bmp_image.html">BmpImage</a></div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> {</div> +<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#a652361b1e6fba2a9ba11afacec6290e3"> 53</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_bmp_image.html#a652361b1e6fba2a9ba11afacec6290e3">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"BmpImage"</span>; }</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="struct_bmp_image.html#af6c27980ccc788f2295f396c049a6de3">BmpImage</a>(<span class="keywordtype">short</span> w, <span class="keywordtype">short</span> h, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>* hibits);</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="struct_bmp_image.html#af6c27980ccc788f2295f396c049a6de3">BmpImage</a>();</div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="struct_bmp_image.html#a6e919d5e31884577cb4f944217673559">~BmpImage</a>();</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">int</span> <a class="code" href="struct_bmp_image.html#a7766ccbbcb3efa09b3a3cfd67acf1edf">Load</a>(<span class="keywordtype">char</span> *filename);</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">int</span> <a class="code" href="struct_bmp_image.html#a670c56346e71ab94c53013c6d2acd5d6">Save</a>(<span class="keywordtype">char</span> *filename);</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">int</span> <a class="code" href="struct_bmp_image.html#a71ab692934a0d0f296ced614ca6c61bd">LoadBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* buf, <span class="keywordtype">int</span> len);</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> +<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#aabb70ad1b061c3dfce2c5fa7928495e9"> 65</a></span>  <a class="code" href="struct_bmp_file_header.html">BmpFileHeader</a> <a class="code" href="struct_bmp_image.html#aabb70ad1b061c3dfce2c5fa7928495e9">file_hdr</a>;</div> +<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#aa0f0aa2637fec5b10c918bba0c3ee091"> 66</a></span>  <a class="code" href="struct_bmp_info_header.html">BmpInfoHeader</a> <a class="code" href="struct_bmp_image.html#aa0f0aa2637fec5b10c918bba0c3ee091">info_hdr</a>;</div> +<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#ab87bb5584fc265061a28542a82383bd8"> 67</a></span>  DWORD <a class="code" href="struct_bmp_image.html#ab87bb5584fc265061a28542a82383bd8">palette</a>[256];</div> +<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#af93a7c056359575ea172624aed8fe4bc"> 68</a></span>  DWORD* <a class="code" href="struct_bmp_image.html#af93a7c056359575ea172624aed8fe4bc">image</a>;</div> +<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#aa9e07437dccfa776b920536cea143c1e"> 69</a></span>  WORD <a class="code" href="struct_bmp_image.html#aa9e07437dccfa776b920536cea143c1e">width</a>;</div> +<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="struct_bmp_image.html#ac3776216d5e060ab783336c5b7e55067"> 70</a></span>  WORD <a class="code" href="struct_bmp_image.html#ac3776216d5e060ab783336c5b7e55067">height</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"> 72</span> </div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor">#endif BMP_H</span></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_d6625d0f3efd9eb70ff961583505095b.html">nGenEx</a></li><li class="navelem"><a class="el" href="_bmp_8h.html">Bmp.h</a></li> + <li class="footer">Generated on Thu May 31 2012 16:30:51 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |