File: alleggl_8c.html

package info (click to toggle)
allegro4.4 2%3A4.4.2-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,920 kB
  • ctags: 39,951
  • sloc: ansic: 164,225; asm: 17,620; cpp: 3,848; objc: 1,687; sh: 1,131; python: 676; pascal: 179; makefile: 48; perl: 29; lisp: 1
file content (255 lines) | stat: -rw-r--r-- 15,302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!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>AllegroGL: alleggl.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="alleggl.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">AllegroGL&#160;<span id="projectnumber">0.4.4</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<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">
  initNavTree('alleggl_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>alleggl.c File Reference</h1>  </div>
</div>
<div class="contents">

<p>Allegro-OpenGL interfacing.  
<a href="#_details">More...</a></p>
<div class="textblock"><code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &quot;alleggl.h&quot;</code><br/>
<code>#include &quot;allglint.h&quot;</code><br/>
<code>#include &lt;allegro/internal/aintern.h&gt;</code><br/>
<code>#include &lt;GL/glu.h&gt;</code><br/>
</div>
<p><a href="alleggl_8c_source.html">Go to the source code of this file.</a></p>
<h2><a name="define-members"></a>
Defines</h2>
<ul>
<li><a class="anchor" id="a09462782acac95f9a6da67adf659ed6e"></a><!-- doxytag: member="alleggl.c::PREFIX_I" ref="a09462782acac95f9a6da67adf659ed6e" args="" -->
#define <b>PREFIX_I</b>&#160;&#160;&#160;&quot;agl INFO: &quot;
<li><a class="anchor" id="a8c04b6ea901068c5cc4020e9a18c0cbe"></a><!-- doxytag: member="alleggl.c::PREFIX_E" ref="a8c04b6ea901068c5cc4020e9a18c0cbe" args="" -->
#define <b>PREFIX_E</b>&#160;&#160;&#160;&quot;agl ERROR: &quot;
<li><a class="anchor" id="a712f8992c7b07a796b254244c0e362c4"></a><!-- doxytag: member="alleggl.c::PREFIX_L" ref="a712f8992c7b07a796b254244c0e362c4" args="" -->
#define <b>PREFIX_L</b>&#160;&#160;&#160;&quot;agl LOG: &quot;
</ul>
<h2><a name="func-members"></a>
Functions</h2>
<ul>
<li><a class="anchor" id="a8bfd290ff50878a432c36efaf494a856"></a><!-- doxytag: member="alleggl.c::our_gfx_drivers" ref="a8bfd290ff50878a432c36efaf494a856" args="(void)" -->
static _DRIVER_INFO * <b>our_gfx_drivers</b> (void)
<li><a class="anchor" id="aad021ddbdff0236b4a10ab5aa6af8d85"></a><!-- doxytag: member="alleggl.c::list_saved_gfx_drivers" ref="aad021ddbdff0236b4a10ab5aa6af8d85" args="(void)" -->
static _DRIVER_INFO * <b>list_saved_gfx_drivers</b> (void)
<li><a class="anchor" id="a00396d2a89cb9f21be985de53e1df575"></a><!-- doxytag: member="alleggl.c::allegro_gl_default_gfx_init" ref="a00396d2a89cb9f21be985de53e1df575" args="(int w, int h, int vw, int vh, int depth)" -->
static BITMAP * <b>allegro_gl_default_gfx_init</b> (int w, int h, int vw, int vh, int depth)
<li><a class="anchor" id="a40fb22e20a933efa9a33ff4098daa3e3"></a><!-- doxytag: member="alleggl.c::build_settings" ref="a40fb22e20a933efa9a33ff4098daa3e3" args="(int opt, char *section, char *name)" -->
static void <b>build_settings</b> (int opt, char *section, char *name)
<li><a class="anchor" id="a9020a1b0f0f4d0e7524b2d13b912a755"></a><!-- doxytag: member="alleggl.c::agl_parse_section" ref="a9020a1b0f0f4d0e7524b2d13b912a755" args="(int sec, char *section, char *name)" -->
static void <b>agl_parse_section</b> (int sec, char *section, char *name)
<li>int <a class="el" href="group__core.html#gaa0cbb82fa1e2bae6788eb7bd06673bd3">install_allegro_gl</a> (void)
<dl class="el"><dd class="mdescRight">Installs the AllegroGL addon to Allegro.  <a href="group__core.html#gaa0cbb82fa1e2bae6788eb7bd06673bd3"></a><br/></dl><li>void <a class="el" href="group__core.html#gaeff6abbb1d1071a01f4cd694ef504298">remove_allegro_gl</a> (void)
<dl class="el"><dd class="mdescRight">Removes the AllegroGL addon.  <a href="group__core.html#gaeff6abbb1d1071a01f4cd694ef504298"></a><br/></dl><li>void <a class="el" href="group__core.html#gaf5aad043e99b766393fa4a7ec034a0f1">allegro_gl_flip</a> (void)
<dl class="el"><dd class="mdescRight">Flips the front and back framebuffers.  <a href="group__core.html#gaf5aad043e99b766393fa4a7ec034a0f1"></a><br/></dl><li>float <a class="el" href="group__core.html#ga444d507eaeb5ba800787f6a81827615d">allegro_gl_opengl_version</a> ()
<dl class="el"><dd class="mdescRight">Returns the OpenGL version number of the client (the computer the program is running on).  <a href="group__core.html#ga444d507eaeb5ba800787f6a81827615d"></a><br/></dl><li><a class="anchor" id="a1648560e7a8d944f2cc700f420374da2"></a><!-- doxytag: member="alleggl.c::__allegro_gl_set_allegro_image_format" ref="a1648560e7a8d944f2cc700f420374da2" args="(int big_endian)" -->
void <b>__allegro_gl_set_allegro_image_format</b> (int big_endian)
<li><a class="anchor" id="a4e7f6038ebd76a511b6c2a787090699a"></a><!-- doxytag: member="alleggl.c::allegro_gl_set_blender_mode" ref="a4e7f6038ebd76a511b6c2a787090699a" args="(int mode, int r, int g, int b, int a)" -->
void <b>allegro_gl_set_blender_mode</b> (int mode, int r, int g, int b, int a)
</ul>
<tr><td colspan="2"><div class="groupHeader">Mode selection functions</div></td></tr>
<ul>
<li>void <a class="el" href="group__settings.html#gadd1249980001c22cb3eba880561a7e19">allegro_gl_clear_settings</a> (void)
<dl class="el"><dd class="mdescRight">Clear the option settings All settings are set to their default values, and marked as neither suggested not required.  <a href="group__settings.html#gadd1249980001c22cb3eba880561a7e19"></a><br/></dl><li>void <a class="el" href="group__settings.html#ga025e79a4394803a0e15aaf07b1a8a656">allegro_gl_set</a> (int option, int value)
<dl class="el"><dd class="mdescRight">Sets a configuration option.  <a href="group__settings.html#ga025e79a4394803a0e15aaf07b1a8a656"></a><br/></dl><li>int <a class="el" href="group__settings.html#ga2179291ddb3cb528c3c0cf84af5c51a9">allegro_gl_get</a> (int option)
<dl class="el"><dd class="mdescRight">Reads the setting of a configuration option.  <a href="group__settings.html#ga2179291ddb3cb528c3c0cf84af5c51a9"></a><br/></dl><li>void <a class="el" href="group__settings.html#gaa461b9459f56c9274d2d49accf201ee1">allegro_gl_save_settings</a> ()
<dl class="el"><dd class="mdescRight">Saves the current settings (as specified by <a class="el" href="group__settings.html#ga025e79a4394803a0e15aaf07b1a8a656" title="Sets a configuration option.">allegro_gl_set()</a>) to the current config file, in the section [OpenGL].  <a href="group__settings.html#gaa461b9459f56c9274d2d49accf201ee1"></a><br/></dl><li>void <a class="el" href="group__settings.html#ga60a577d2fed019cdae83c648f1ff74ec">allegro_gl_load_settings</a> ()
<dl class="el"><dd class="mdescRight">Loads the settings from the current config file, in the section [OpenGL].  <a href="group__settings.html#ga60a577d2fed019cdae83c648f1ff74ec"></a><br/></dl></ul>
<h2><a name="var-members"></a>
Variables</h2>
<ul>
<li><a class="anchor" id="a5367a90beaa783cd9c718b9f04581569"></a><!-- doxytag: member="alleggl.c::__allegro_gl_driver" ref="a5367a90beaa783cd9c718b9f04581569" args="" -->
struct allegro_gl_driver * <b>__allegro_gl_driver</b> = NULL
<li><a class="anchor" id="a2c85176c3194da68f01306449426d6ca"></a><!-- doxytag: member="alleggl.c::allegro_gl_display_info" ref="a2c85176c3194da68f01306449426d6ca" args="" -->
struct allegro_gl_display_info <b>allegro_gl_display_info</b>
<li><a class="anchor" id="aa2eae9f89b0113a34ca4bc74a1567e3c"></a><!-- doxytag: member="alleggl.c::__allegro_gl_required_settings" ref="aa2eae9f89b0113a34ca4bc74a1567e3c" args="" -->
int <b>__allegro_gl_required_settings</b>
<li><a class="anchor" id="ac2e302ce1b0def545585451d80924a65"></a><!-- doxytag: member="alleggl.c::__allegro_gl_suggested_settings" ref="ac2e302ce1b0def545585451d80924a65" args="" -->
int <b>__allegro_gl_suggested_settings</b>
<li><a class="anchor" id="a1cf577416af8a45cce479746114d7acb"></a><!-- doxytag: member="alleggl.c::__allegro_gl_valid_context" ref="a1cf577416af8a45cce479746114d7acb" args="" -->
int <b>__allegro_gl_valid_context</b> = 0
<li><a class="anchor" id="a480f9c7c69cd0af982451925cb6c25c8"></a><!-- doxytag: member="alleggl.c::__allegro_gl_blit_operation" ref="a480f9c7c69cd0af982451925cb6c25c8" args="" -->
int <b>__allegro_gl_blit_operation</b>
<li><a class="anchor" id="ab778f41420b50a0e2aacac3f0a6c810e"></a><!-- doxytag: member="alleggl.c::allegro_gl_error" ref="ab778f41420b50a0e2aacac3f0a6c810e" args="[AGL_ERROR_SIZE]" -->
char <b>allegro_gl_error</b> [AGL_ERROR_SIZE] = EMPTY_STRING
<li><a class="anchor" id="ad05d1a03b46ff2f05841d3c2cc7ec5bd"></a><!-- doxytag: member="alleggl.c::__blit_between_formats8" ref="ad05d1a03b46ff2f05841d3c2cc7ec5bd" args="" -->
BLIT_BETWEEN_FORMATS_FUNC <b>__blit_between_formats8</b>
<li><a class="anchor" id="ad93b412d24f734a1f8ac91df7031b8d9"></a><!-- doxytag: member="alleggl.c::__blit_between_formats15" ref="ad93b412d24f734a1f8ac91df7031b8d9" args="" -->
BLIT_BETWEEN_FORMATS_FUNC <b>__blit_between_formats15</b>
<li><a class="anchor" id="a61b31e9c00583f1f6a7493a3f9ae57f6"></a><!-- doxytag: member="alleggl.c::__blit_between_formats16" ref="a61b31e9c00583f1f6a7493a3f9ae57f6" args="" -->
BLIT_BETWEEN_FORMATS_FUNC <b>__blit_between_formats16</b>
<li><a class="anchor" id="adcd1ff2e3c7d2a4e9dd5573a72923554"></a><!-- doxytag: member="alleggl.c::__blit_between_formats24" ref="adcd1ff2e3c7d2a4e9dd5573a72923554" args="" -->
BLIT_BETWEEN_FORMATS_FUNC <b>__blit_between_formats24</b>
<li><a class="anchor" id="a02dbd9fcc2542ce36c900ac579fcd8d9"></a><!-- doxytag: member="alleggl.c::__blit_between_formats32" ref="a02dbd9fcc2542ce36c900ac579fcd8d9" args="" -->
BLIT_BETWEEN_FORMATS_FUNC <b>__blit_between_formats32</b>
<li>BITMAP * <a class="el" href="alleggl_8c.html#a84d9cceae55bf273f9aab7512b353284">allegro_gl_screen</a>
<dl class="el"><dd class="mdescRight">Direct-mode GL `screen' bitmap.  <a href="#a84d9cceae55bf273f9aab7512b353284"></a><br/></dl><li>static _DRIVER_INFO <b>our_driver_list</b> []
<li><a class="anchor" id="a8760f2896c377916811212e312fbd416"></a><!-- doxytag: member="alleggl.c::saved_gfx_drivers" ref="a8760f2896c377916811212e312fbd416" args=")(void)" -->
_DRIVER_INFO *(* <b>saved_gfx_drivers</b> )(void) = NULL
<li>GFX_DRIVER <b>gfx_allegro_gl_default</b>
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Allegro-OpenGL interfacing. </p>
<p>This sorts out having Allegro and the OpenGL library sharing a window, and generally cooperating. </p>

<p>Definition in file <a class="el" href="alleggl_8c_source.html">alleggl.c</a>.</p>
</div><hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a84d9cceae55bf273f9aab7512b353284"></a><!-- doxytag: member="alleggl.c::allegro_gl_screen" ref="a84d9cceae55bf273f9aab7512b353284" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BITMAP* <a class="el" href="alleggl_8c.html#a84d9cceae55bf273f9aab7512b353284">allegro_gl_screen</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Direct-mode GL `screen' bitmap. </p>
<p>If you draw to this bitmap (using supported Allegro functions) your calls will be converted into OpenGL equivalents and appear on the screen (or backbuffer). </p>

<p>Definition at line <a class="el" href="alleggl_8c_source.html#l00062">62</a> of file <a class="el" href="alleggl_8c_source.html">alleggl.c</a>.</p>

</div>
</div>
<a class="anchor" id="a322edd34d2956f4bcdadb92e98b51880"></a><!-- doxytag: member="alleggl.c::our_driver_list" ref="a322edd34d2956f4bcdadb92e98b51880" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_DRIVER_INFO our_driver_list[]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {






    {<a class="code" href="alleggl_8h.html#a6341d90e32c19c45f003442b19ecba5f" title="Non-specific OpenGL graphics driver for Allegro.">GFX_OPENGL</a>, &amp;gfx_allegro_gl_default, FALSE},
    {0, NULL, FALSE}
}
</pre></div>
<p>Definition at line <a class="el" href="alleggl_8c_source.html#l00067">67</a> of file <a class="el" href="alleggl_8c_source.html">alleggl.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac62887d7ccdfa9737e2d952c95402e6a"></a><!-- doxytag: member="alleggl.c::gfx_allegro_gl_default" ref="ac62887d7ccdfa9737e2d952c95402e6a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GFX_DRIVER gfx_allegro_gl_default</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Initial value:</b><div class="fragment"><pre class="fragment">
{
   <a class="code" href="alleggl_8h.html#a6341d90e32c19c45f003442b19ecba5f" title="Non-specific OpenGL graphics driver for Allegro.">GFX_OPENGL</a>,
   EMPTY_STRING,
   EMPTY_STRING,
   <span class="stringliteral">&quot;AllegroGL Default Driver&quot;</span>,
   allegro_gl_default_gfx_init,
   NULL,
   NULL,
   NULL,               
   NULL,
   NULL, NULL, NULL,
   NULL,        
   NULL,
   NULL, NULL,  
   NULL, NULL,
   NULL, NULL, NULL, NULL,
   NULL,
   NULL, NULL,
   NULL,        
   NULL,        
   0, 0,
   0,
   0, 0,
   0,
   0,
   FALSE        
}
</pre></div>
<p>Definition at line <a class="el" href="alleggl_8c_source.html#l00102">102</a> of file <a class="el" href="alleggl_8c_source.html">alleggl.c</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="alleggl_8c.html">alleggl.c</a>      </li>
      <li class="footer">Generated on Thu May 19 2011 23:20:20 for AllegroGL by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>