-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathexamples_graphics.html
More file actions
448 lines (448 loc) · 16.8 KB
/
examples_graphics.html
File metadata and controls
448 lines (448 loc) · 16.8 KB
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Allegro - Examples - Graphics</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="web_style.css" />
<link rel="alternate" type="application/atom+xml"
href="feed_atom.xml" title="Allegro news"
/>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<div id="main_header">
<div id="header_container">
<img id="logo" src="images/logo.png" alt="Allegro" height="58" width="186" />
<div id="title">
A game programming library
</div>
</div>
</div>
<div id="left">
<div id="sidebar">
<ul>
<li><strong>Allegro</strong>
<ul>
<li><a href="index.html">About</a></li>
<li><a href="https://github.com/liballeg/allegro5">Git
repository</a></li>
<li><a href="license.html">License</a></li>
<li><a href="examples_demos.html">Examples</a></li>
<li><a href="https://github.com/liballeg/allegro5/issues">Bug
tracker</a></li>
<li><a href="bindings.html">Language bindings</a></li>
<li><a href="https://github.com/liballeg">Other Git
repositories</a></li>
</ul></li>
<li><strong>Downloads</strong>
<ul>
<li><strong><a href="download.html">Latest version</a></strong></li>
<li><a href="old.html">Older versions</a></li>
<li><a href="addons.html">Extra addons</a></li>
</ul></li>
<li><strong>Documentation</strong>
<ul>
<li><strong><a href="https://liballeg.org/a5docs/trunk/">Latest
version</a></strong></li>
<li><a href="api.html">All versions</a></li>
<li><a href="docs.html">Tutorials</a></li>
<li><a href="books.html">Books</a></li>
<li><a
href="https://github.com/liballeg/allegro_wiki/wiki">Wiki</a></li>
</ul></li>
<li><strong>Community</strong>
<ul>
<li><a href="https://discord.gg/f3Cd4TZzpp">Discord</a></li>
<li><a href="irc.html">IRC</a></li>
<li><a
href="https://github.com/liballeg/allegro5/discussions">Forums</a></li>
<li><a href="game_jams.html">Game Jams</a></li>
</ul></li>
<li><strong>Misc</strong>
<ul>
<li><a href="readme.html">History</a></li>
<li><a href="oldnews.html">Older news</a></li>
<li><a href="logos.html">Logos</a></li>
<li><a href="digmid.html">DIGMID</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="mirrors.html">Mirrors</a></li>
<li><a href="maillist.html">Mailing lists</a></li>
<li><a href="webmasters.html">Webmasters</a></li>
<li><a href="humor.html">Humor</a></li>
</ul></li>
</ul>
<!-- keep blank line for correct HTML -->
</div>
<!-- sidebar -->
<div id="hosting">
<p><a href="https://github.com/liballeg">GitHub project</a> <br/> <br/>
<a
href="https://projects.tuxfamily.org/?do=group;name=allegro">TuxFamily
project</a></p>
</div>
<!-- hosting -->
</div>
<!-- left -->
<div id="content">
<header id="title-block-header">
<h1 class="title">Allegro - Examples - Graphics</h1>
</header>
<div class="tabbar">
<p><a href="examples_demos.html">Demos</a> - <strong>Graphics</strong> -
<a href="examples_bitmap.html">Bitmap</a> - <a
href="examples_audio.html">Audio</a> - <a
href="examples_display.html">Display</a> - <a
href="examples_input.html">Input</a> - <a
href="examples_misc.html">Misc</a></p>
</div>
<div class="examples">
<div class="example">
<p>ex_prim<a href="https://allegro5.org/examples/examples/ex_prim.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_prim.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_prim.png" alt="ex_prim screenshot" /></p>
</div>
<div class="example">
<p>ex_blend<a
href="https://allegro5.org/examples/examples/ex_blend.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_blend.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_blend.png" alt="ex_blend screenshot" /></p>
</div>
<div class="example">
<p>ex_blend2<a
href="https://allegro5.org/examples/examples/ex_blend2.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_blend2.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_blend2.png" alt="ex_blend2 screenshot" /></p>
</div>
<div class="example">
<p>ex_blend_target<a
href="https://allegro5.org/examples/examples/ex_blend_target.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_blend_target.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_blend_target.png"
alt="ex_blend_target screenshot" /></p>
</div>
<div class="example">
<p>ex_camera<a
href="https://allegro5.org/examples/examples/ex_camera.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_camera.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_camera.png" alt="ex_camera screenshot" /></p>
</div>
<div class="example">
<p>ex_vertex_buffer<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_vertex_buffer.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_vertex_buffer.png"
alt="ex_vertex_buffer screenshot" /></p>
</div>
<div class="example">
<p>ex_color2<a
href="https://allegro5.org/examples/examples/ex_color2.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_color2.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_color2.png" alt="ex_color2 screenshot" /></p>
</div>
<div class="example">
<p>ex_depth_mask<a
href="https://allegro5.org/examples/examples/ex_depth_mask.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_depth_mask.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_depth_mask.png"
alt="ex_depth_mask screenshot" /></p>
</div>
<div class="example">
<p>ex_depth_target<a
href="https://allegro5.org/examples/examples/ex_depth_target.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_depth_target.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_depth_target.png"
alt="ex_depth_target screenshot" /></p>
</div>
<div class="example">
<p>ex_draw<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_draw.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_draw.png" alt="ex_draw screenshot" /></p>
</div>
<div class="example">
<p>ex_font<a href="https://allegro5.org/examples/examples/ex_font.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_font.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_font.png" alt="ex_font screenshot" /></p>
</div>
<div class="example">
<p>ex_glext<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_glext.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_glext.png" alt="ex_glext screenshot" /></p>
</div>
<div class="example">
<p>ex_haiku<a
href="https://allegro5.org/examples/examples/ex_haiku.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_haiku.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_haiku.png" alt="ex_haiku screenshot" /></p>
</div>
<div class="example">
<p>ex_multisample_target<a
href="https://allegro5.org/examples/examples/ex_multisample_target.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_multisample_target.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_multisample_target.png"
alt="ex_multisample_target screenshot" /></p>
</div>
<div class="example">
<p>ex_prim_shader<a
href="https://allegro5.org/examples/examples/ex_prim_shader.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_prim_shader.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_prim_shader.png"
alt="ex_prim_shader screenshot" /></p>
</div>
<div class="example">
<p>ex_projection<a
href="https://allegro5.org/examples/examples/ex_projection.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_projection.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_projection.png"
alt="ex_projection screenshot" /></p>
</div>
<div class="example">
<p>ex_projection2<a
href="https://allegro5.org/examples/examples/ex_projection2.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_projection2.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_projection2.png"
alt="ex_projection2 screenshot" /></p>
</div>
<div class="example">
<p>ex_shader<a
href="https://allegro5.org/examples/examples/ex_shader.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_shader.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_shader.png" alt="ex_shader screenshot" /></p>
</div>
<div class="example">
<p>ex_shader_multitex<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_shader_multitex.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_shader_multitex.png"
alt="ex_shader_multitex screenshot" /></p>
</div>
<div class="example">
<p>ex_font_justify<a
href="https://allegro5.org/examples/examples/ex_font_justify.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_font_justify.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_font_justify.png"
alt="ex_font_justify screenshot" /></p>
</div>
<div class="example">
<p>ex_font_multiline<a
href="https://allegro5.org/examples/examples/ex_font_multiline.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_font_multiline.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_font_multiline.png"
alt="ex_font_multiline screenshot" /></p>
</div>
<div class="example">
<p>ex_color<a
href="https://allegro5.org/examples/examples/ex_color.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_color.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_color.png" alt="ex_color screenshot" /></p>
</div>
<div class="example">
<p>ex_gldepth<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_gldepth.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_gldepth.png" alt="ex_gldepth screenshot" /></p>
</div>
<div class="example">
<p>ex_lines<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_lines.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_lines.png" alt="ex_lines screenshot" /></p>
</div>
<div class="example">
<p>ex_logo<a href="https://allegro5.org/examples/examples/ex_logo.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_logo.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_logo.png" alt="ex_logo screenshot" /></p>
</div>
<div class="example">
<p>ex_multisample<a
href="https://allegro5.org/examples/examples/ex_multisample.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_multisample.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_multisample.png"
alt="ex_multisample screenshot" /></p>
</div>
<div class="example">
<p>ex_opengl<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_opengl.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_opengl.png" alt="ex_opengl screenshot" /></p>
</div>
<div class="example">
<p>ex_opengl_pixel_shader<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_opengl_pixel_shader.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_opengl_pixel_shader.png"
alt="ex_opengl_pixel_shader screenshot" /></p>
</div>
<div class="example">
<p>ex_palette<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_palette.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_palette.png" alt="ex_palette screenshot" /></p>
</div>
<div class="example">
<p>ex_pixelformat<a
href="https://allegro5.org/examples/examples/ex_pixelformat.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_pixelformat.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_pixelformat.png"
alt="ex_pixelformat screenshot" /></p>
</div>
<div class="example">
<p>ex_polygon<a
href="https://allegro5.org/examples/examples/ex_polygon.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_polygon.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_polygon.png" alt="ex_polygon screenshot" /></p>
</div>
<div class="example">
<p>ex_shader_target<a
href="https://allegro5.org/examples/examples/ex_shader_target.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_shader_target.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_shader_target.png"
alt="ex_shader_target screenshot" /></p>
</div>
<div class="example">
<p>ex_transform<a
href="https://allegro5.org/examples/examples/ex_transform.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_transform.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_transform.png"
alt="ex_transform screenshot" /></p>
</div>
<div class="example">
<p>ex_ttf<a href="https://allegro5.org/examples/examples/ex_ttf.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_ttf.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_ttf.png" alt="ex_ttf screenshot" /></p>
</div>
<div class="example">
<p>ex_utf8<a href="https://allegro5.org/examples/examples/ex_utf8.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_utf8.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_utf8.png" alt="ex_utf8 screenshot" /></p>
</div>
<div class="example">
<p>ex_drawpixels<a
href="https://allegro5.org/examples/examples/ex_drawpixels.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_drawpixels.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_drawpixels.png"
alt="ex_drawpixels screenshot" /></p>
</div>
<div class="example">
<p>ex_blend_bench<a
href="https://allegro5.org/examples/examples/ex_blend_bench.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_blend_bench.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_blend_bench.png"
alt="ex_blend_bench screenshot" /></p>
</div>
<div class="example">
<p>ex_video<a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_video.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_video.png" alt="ex_video screenshot" /></p>
</div>
<div class="example">
<p>ex_vsync<a
href="https://allegro5.org/examples/examples/ex_vsync.html" class="try"
title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_vsync.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_vsync.png" alt="ex_vsync screenshot" /></p>
</div>
<div class="example">
<p>ex_blend_test<a
href="https://allegro5.org/examples/examples/ex_blend_test.html"
class="try" title="Try">try</a><a
href="https://github.com/liballeg/allegro5/tree/master/examples/ex_blend_test.c"
class="try" title="Source">source</a><br />
<img src="screenshots/ex_blend_test.png"
alt="ex_blend_test screenshot" /></p>
</div>
</div>
</div>
<!-- content -->
<div id="footer">
<div id="contact">
<p><a href="webmasters.html">Contact the webmasters</a></p>
</div>
<!-- contact -->
<p><a href="http://petition.eurolinux.org/index_html?LANG=en">
<img src="images/nopatents.png" border="0" alt="No ePatents"
height="33" width="88" vspace="1" hspace="1" /> </a>
<a href="http://www.anybrowser.org/campaign/">
<img src="images/anyb.png" border="0" alt="Viewable with any browser"
height="31" width="88" vspace="1" hspace="1" /> </a></p>
</div>
<!-- footer -->
</body>
</html>