diff options
Diffstat (limited to 'docs/html/_allegro_wrappers_8cpp_source.html')
-rw-r--r-- | docs/html/_allegro_wrappers_8cpp_source.html | 223 |
1 files changed, 223 insertions, 0 deletions
diff --git a/docs/html/_allegro_wrappers_8cpp_source.html b/docs/html/_allegro_wrappers_8cpp_source.html new file mode 100644 index 0000000..60278e3 --- /dev/null +++ b/docs/html/_allegro_wrappers_8cpp_source.html @@ -0,0 +1,223 @@ +<!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>Rally X: source/logic/AllegroWrappers.cpp Source File</title> + +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> + +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</script> + +</head> +<body> +<div id="top"><!-- do not remove this div! --> + + +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + + <td id="projectlogo"><img alt="Logo" src="car.PNG"/></td> + + + <td style="padding-left: 0.5em;"> + <div id="projectname">Rally X + + </div> + <div id="projectbrief">ELEN3009 Project by Justin Wernick and David Schneider</div> + </td> + + + + </tr> + </tbody> +</table> +</div> + +<!-- Generated by Doxygen 1.7.5.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 class="header"> + <div class="headertitle"> +<div class="title">source/logic/AllegroWrappers.cpp</div> </div> +</div> +<div class="contents"> +<a href="_allegro_wrappers_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include "<a class="code" href="_allegro_wrappers_8h.html">AllegroWrappers.h</a>"</span> +<a name="l00002"></a>00002 +<a name="l00003"></a>00003 <span class="keywordtype">int</span> <a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">AllegroInit::_initCount</a> = 0; +<a name="l00004"></a>00004 +<a name="l00005"></a><a class="code" href="class_allegro_init.html#a14e28ffed7456b158cf919d310920af4">00005</a> <a class="code" href="class_allegro_init.html#a14e28ffed7456b158cf919d310920af4" title="Constructor calls al_init() if it is the first instance.">AllegroInit::AllegroInit</a>() +<a name="l00006"></a>00006 { +<a name="l00007"></a>00007 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>==0) +<a name="l00008"></a>00008 { +<a name="l00009"></a>00009 <span class="keywordflow">if</span> (!al_init()) +<a name="l00010"></a>00010 { +<a name="l00011"></a>00011 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00012"></a>00012 } +<a name="l00013"></a>00013 } +<a name="l00014"></a>00014 ++<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>; +<a name="l00015"></a>00015 } +<a name="l00016"></a>00016 +<a name="l00017"></a><a class="code" href="class_allegro_init.html#a81588c1ce0fe3646a188683f1598a66b">00017</a> <a class="code" href="class_allegro_init.html#a14e28ffed7456b158cf919d310920af4" title="Constructor calls al_init() if it is the first instance.">AllegroInit::AllegroInit</a>(<span class="keyword">const</span> <a class="code" href="class_allegro_init.html" title="Class ensures that Allegro is initialized and uninstalled when appropriate.">AllegroInit</a>& ref) +<a name="l00018"></a>00018 { +<a name="l00019"></a>00019 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>==0) +<a name="l00020"></a>00020 { +<a name="l00021"></a>00021 <span class="keywordflow">if</span> (!al_init()) +<a name="l00022"></a>00022 { +<a name="l00023"></a>00023 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00024"></a>00024 } +<a name="l00025"></a>00025 } +<a name="l00026"></a>00026 ++<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>; +<a name="l00027"></a>00027 } +<a name="l00028"></a>00028 +<a name="l00029"></a><a class="code" href="class_allegro_init.html#a41fb85a1de21168ec2a93e79e0e20b89">00029</a> <a class="code" href="class_allegro_init.html#a41fb85a1de21168ec2a93e79e0e20b89" title="Destructor calls al_uninstall_system() if it is the last instant.">AllegroInit::~AllegroInit</a>() +<a name="l00030"></a>00030 { +<a name="l00031"></a>00031 --<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>; +<a name="l00032"></a>00032 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_init.html#ab8d20b549d0b996dde5cdbe8acd7186c" title="Count of the current number of initialised AllegroInit objects.">_initCount</a>==0) +<a name="l00033"></a>00033 { +<a name="l00034"></a>00034 al_uninstall_system(); +<a name="l00035"></a>00035 } +<a name="l00036"></a>00036 } +<a name="l00037"></a>00037 +<a name="l00038"></a>00038 +<a name="l00039"></a>00039 <span class="keywordtype">int</span> <a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">AllegroKeyboardInit::_initCount</a> = 0; +<a name="l00040"></a>00040 +<a name="l00041"></a><a class="code" href="class_allegro_keyboard_init.html#a42fce2d97b6b7c0c0c666d0f5804a45e">00041</a> <a class="code" href="class_allegro_keyboard_init.html#a42fce2d97b6b7c0c0c666d0f5804a45e" title="Constructor calls al_install_keyboard() if it is the first instance.">AllegroKeyboardInit::AllegroKeyboardInit</a>() +<a name="l00042"></a>00042 { +<a name="l00043"></a>00043 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>==0) +<a name="l00044"></a>00044 { +<a name="l00045"></a>00045 <span class="keywordflow">if</span> (!al_install_keyboard()) +<a name="l00046"></a>00046 { +<a name="l00047"></a>00047 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00048"></a>00048 } +<a name="l00049"></a>00049 } +<a name="l00050"></a>00050 ++<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>; +<a name="l00051"></a>00051 } +<a name="l00052"></a>00052 +<a name="l00053"></a><a class="code" href="class_allegro_keyboard_init.html#ae28cb5cbafdba3372f21ddb95a9ed134">00053</a> <a class="code" href="class_allegro_keyboard_init.html#a42fce2d97b6b7c0c0c666d0f5804a45e" title="Constructor calls al_install_keyboard() if it is the first instance.">AllegroKeyboardInit::AllegroKeyboardInit</a>(<span class="keyword">const</span> <a class="code" href="class_allegro_keyboard_init.html" title="Class ensures that Allegro's keyboard is installed and uninstalled when appropriate.">AllegroKeyboardInit</a>& ref) +<a name="l00054"></a>00054 { +<a name="l00055"></a>00055 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>==0) +<a name="l00056"></a>00056 { +<a name="l00057"></a>00057 <span class="keywordflow">if</span> (!al_install_keyboard()) +<a name="l00058"></a>00058 { +<a name="l00059"></a>00059 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00060"></a>00060 } +<a name="l00061"></a>00061 } +<a name="l00062"></a>00062 ++<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>; +<a name="l00063"></a>00063 } +<a name="l00064"></a>00064 +<a name="l00065"></a><a class="code" href="class_allegro_keyboard_init.html#a7d1b1cda1d2220ad522ee955ba8a2c5d">00065</a> <a class="code" href="class_allegro_keyboard_init.html#a7d1b1cda1d2220ad522ee955ba8a2c5d" title="Destructor calls al_uninstall_keyboard() if it is the last instant.">AllegroKeyboardInit::~AllegroKeyboardInit</a>() +<a name="l00066"></a>00066 { +<a name="l00067"></a>00067 --<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>; +<a name="l00068"></a>00068 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_keyboard_init.html#ac7f75bcc5cb56a1c2f4e9ce653d9dfd7" title="Count of the current number of initialised AllegroKeyboardInit objects.">_initCount</a>==0) al_uninstall_keyboard(); +<a name="l00069"></a>00069 } +<a name="l00070"></a>00070 +<a name="l00071"></a>00071 <span class="keywordtype">int</span> <a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">AllegroDrawingInit::_initCount</a> = 0; +<a name="l00072"></a>00072 +<a name="l00073"></a><a class="code" href="class_allegro_drawing_init.html#ab7cf79c71bf662f897bd8cba32f42cda">00073</a> <a class="code" href="class_allegro_drawing_init.html#ab7cf79c71bf662f897bd8cba32f42cda" title="Constructor calls al_init_primitives_addon(), al_init_font_addon(), and al_init_ttf_addon() if it is ...">AllegroDrawingInit::AllegroDrawingInit</a>() +<a name="l00074"></a>00074 { +<a name="l00075"></a>00075 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>==0) +<a name="l00076"></a>00076 { +<a name="l00077"></a>00077 <span class="keywordflow">if</span> (!al_init_primitives_addon()) +<a name="l00078"></a>00078 { +<a name="l00079"></a>00079 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00080"></a>00080 } +<a name="l00081"></a>00081 al_init_font_addon(); +<a name="l00082"></a>00082 <span class="keywordflow">if</span> (!al_init_ttf_addon()) +<a name="l00083"></a>00083 { +<a name="l00084"></a>00084 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00085"></a>00085 } +<a name="l00086"></a>00086 } +<a name="l00087"></a>00087 ++<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>; +<a name="l00088"></a>00088 } +<a name="l00089"></a>00089 +<a name="l00090"></a><a class="code" href="class_allegro_drawing_init.html#a36fe883267f017f3832feb1f615d7488">00090</a> <a class="code" href="class_allegro_drawing_init.html#ab7cf79c71bf662f897bd8cba32f42cda" title="Constructor calls al_init_primitives_addon(), al_init_font_addon(), and al_init_ttf_addon() if it is ...">AllegroDrawingInit::AllegroDrawingInit</a>(<span class="keyword">const</span> <a class="code" href="class_allegro_drawing_init.html" title="Class ensures that Allegro's primitive and text drawing is installed and uninstalled when appropriate...">AllegroDrawingInit</a>& ref) +<a name="l00091"></a>00091 { +<a name="l00092"></a>00092 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>==0) +<a name="l00093"></a>00093 { +<a name="l00094"></a>00094 <span class="keywordflow">if</span> (!al_init_primitives_addon()) +<a name="l00095"></a>00095 { +<a name="l00096"></a>00096 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00097"></a>00097 } +<a name="l00098"></a>00098 al_init_font_addon(); +<a name="l00099"></a>00099 <span class="keywordflow">if</span> (!al_init_ttf_addon()) +<a name="l00100"></a>00100 { +<a name="l00101"></a>00101 <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>(); +<a name="l00102"></a>00102 } +<a name="l00103"></a>00103 } +<a name="l00104"></a>00104 ++<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>; +<a name="l00105"></a>00105 } +<a name="l00106"></a>00106 +<a name="l00107"></a><a class="code" href="class_allegro_drawing_init.html#aa1c05a296b0c63f8f20276cce6472e6b">00107</a> <a class="code" href="class_allegro_drawing_init.html#aa1c05a296b0c63f8f20276cce6472e6b" title="Destructor calls al_shutdown_primitives_addon(), al_shutdown_font_addon(), and al_shutdown_ttf_addon(...">AllegroDrawingInit::~AllegroDrawingInit</a>() +<a name="l00108"></a>00108 { +<a name="l00109"></a>00109 --<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>; +<a name="l00110"></a>00110 <span class="keywordflow">if</span> (<a class="code" href="class_allegro_drawing_init.html#a78e8f792c6dba89eddf42e74d4a3d577">_initCount</a>==0) +<a name="l00111"></a>00111 { +<a name="l00112"></a>00112 al_shutdown_ttf_addon(); +<a name="l00113"></a>00113 al_shutdown_font_addon(); +<a name="l00114"></a>00114 al_shutdown_primitives_addon(); +<a name="l00115"></a>00115 } +<a name="l00116"></a>00116 } +</pre></div></div> +</div> +<!-- 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></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> + + + +<hr class="footer"/><address class="footer"><small> +Generated on Wed Oct 5 2011 20:08:30 for Rally X by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.7.5.1 +</small></address> + +</body> +</html> |