Skip to content

Commit 0392419

Browse files
committed
Add external includes and binaries
1 parent 3579d8e commit 0392419

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+12964
-0
lines changed

external/include/allegro.h

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/* ______ ___ ___
2+
* /\ _ \ /\_ \ /\_ \
3+
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
4+
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
5+
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
6+
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7+
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8+
* /\____/
9+
* \_/__/
10+
*
11+
* Main header file for the entire Allegro library.
12+
* (separate modules can be included from the allegro/ directory)
13+
*
14+
* By Shawn Hargreaves.
15+
*
16+
* Vincent Penquerc'h split the original allegro.h into separate headers.
17+
*
18+
* See readme.txt for copyright information.
19+
*/
20+
21+
22+
#ifndef ALLEGRO_H
23+
#define ALLEGRO_H
24+
25+
#include "allegro/base.h"
26+
27+
#include "allegro/system.h"
28+
#include "allegro/debug.h"
29+
30+
#include "allegro/unicode.h"
31+
32+
#include "allegro/mouse.h"
33+
#include "allegro/timer.h"
34+
#include "allegro/keyboard.h"
35+
#include "allegro/joystick.h"
36+
37+
#include "allegro/palette.h"
38+
#include "allegro/gfx.h"
39+
#include "allegro/color.h"
40+
#include "allegro/draw.h"
41+
#include "allegro/rle.h"
42+
#include "allegro/compiled.h"
43+
#include "allegro/text.h"
44+
#include "allegro/font.h"
45+
46+
#include "allegro/fli.h"
47+
#include "allegro/config.h"
48+
#include "allegro/gui.h"
49+
50+
#include "allegro/sound.h"
51+
52+
#include "allegro/file.h"
53+
#include "allegro/lzss.h"
54+
#include "allegro/datafile.h"
55+
56+
#include "allegro/fixed.h"
57+
#include "allegro/fmaths.h"
58+
#include "allegro/matrix.h"
59+
#include "allegro/quat.h"
60+
61+
#include "allegro/3d.h"
62+
#include "allegro/3dmaths.h"
63+
64+
65+
#ifndef ALLEGRO_NO_COMPATIBILITY
66+
#include "allegro/alcompat.h"
67+
#endif
68+
69+
#ifndef ALLEGRO_NO_FIX_CLASS
70+
#ifdef __cplusplus
71+
#include "allegro/fix.h"
72+
#endif
73+
#endif
74+
75+
76+
#ifdef ALLEGRO_EXTRA_HEADER
77+
#include ALLEGRO_EXTRA_HEADER
78+
#endif
79+
80+
#endif /* ifndef ALLEGRO_H */
81+
82+

external/include/allegro/3d.h

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/* ______ ___ ___
2+
* /\ _ \ /\_ \ /\_ \
3+
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
4+
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
5+
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
6+
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7+
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8+
* /\____/
9+
* \_/__/
10+
*
11+
* 3D polygon drawing routines.
12+
*
13+
* By Shawn Hargreaves.
14+
*
15+
* See readme.txt for copyright information.
16+
*/
17+
18+
19+
#ifndef ALLEGRO_3D_H
20+
#define ALLEGRO_3D_H
21+
22+
#include "base.h"
23+
#include "fixed.h"
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
struct BITMAP;
30+
31+
typedef struct V3D /* a 3d point (fixed point version) */
32+
{
33+
fixed x, y, z; /* position */
34+
fixed u, v; /* texture map coordinates */
35+
int c; /* color */
36+
} V3D;
37+
38+
39+
typedef struct V3D_f /* a 3d point (floating point version) */
40+
{
41+
float x, y, z; /* position */
42+
float u, v; /* texture map coordinates */
43+
int c; /* color */
44+
} V3D_f;
45+
46+
47+
#define POLYTYPE_FLAT 0
48+
#define POLYTYPE_GCOL 1
49+
#define POLYTYPE_GRGB 2
50+
#define POLYTYPE_ATEX 3
51+
#define POLYTYPE_PTEX 4
52+
#define POLYTYPE_ATEX_MASK 5
53+
#define POLYTYPE_PTEX_MASK 6
54+
#define POLYTYPE_ATEX_LIT 7
55+
#define POLYTYPE_PTEX_LIT 8
56+
#define POLYTYPE_ATEX_MASK_LIT 9
57+
#define POLYTYPE_PTEX_MASK_LIT 10
58+
#define POLYTYPE_ATEX_TRANS 11
59+
#define POLYTYPE_PTEX_TRANS 12
60+
#define POLYTYPE_ATEX_MASK_TRANS 13
61+
#define POLYTYPE_PTEX_MASK_TRANS 14
62+
#define POLYTYPE_MAX 15
63+
#define POLYTYPE_ZBUF 16
64+
65+
AL_VAR(float, scene_gap);
66+
67+
AL_FUNC(void, _soft_polygon3d, (struct BITMAP *bmp, int type, struct BITMAP *texture, int vc, V3D *vtx[]));
68+
AL_FUNC(void, _soft_polygon3d_f, (struct BITMAP *bmp, int type, struct BITMAP *texture, int vc, V3D_f *vtx[]));
69+
AL_FUNC(void, _soft_triangle3d, (struct BITMAP *bmp, int type, struct BITMAP *texture, V3D *v1, V3D *v2, V3D *v3));
70+
AL_FUNC(void, _soft_triangle3d_f, (struct BITMAP *bmp, int type, struct BITMAP *texture, V3D_f *v1, V3D_f *v2, V3D_f *v3));
71+
AL_FUNC(void, _soft_quad3d, (struct BITMAP *bmp, int type, struct BITMAP *texture, V3D *v1, V3D *v2, V3D *v3, V3D *v4));
72+
AL_FUNC(void, _soft_quad3d_f, (struct BITMAP *bmp, int type, struct BITMAP *texture, V3D_f *v1, V3D_f *v2, V3D_f *v3, V3D_f *v4));
73+
AL_FUNC(int, clip3d, (int type, fixed min_z, fixed max_z, int vc, AL_CONST V3D *vtx[], V3D *vout[], V3D *vtmp[], int out[]));
74+
AL_FUNC(int, clip3d_f, (int type, float min_z, float max_z, int vc, AL_CONST V3D_f *vtx[], V3D_f *vout[], V3D_f *vtmp[], int out[]));
75+
76+
AL_FUNC(fixed, polygon_z_normal, (AL_CONST V3D *v1, AL_CONST V3D *v2, AL_CONST V3D *v3));
77+
AL_FUNC(float, polygon_z_normal_f, (AL_CONST V3D_f *v1, AL_CONST V3D_f *v2, AL_CONST V3D_f *v3));
78+
79+
/* Note: You are not supposed to mix ZBUFFER with BITMAP even though it is
80+
* currently possible. This is just the internal representation, and it may
81+
* change in the future.
82+
*/
83+
typedef struct BITMAP ZBUFFER;
84+
85+
AL_FUNC(ZBUFFER *, create_zbuffer, (struct BITMAP *bmp));
86+
AL_FUNC(ZBUFFER *, create_sub_zbuffer, (ZBUFFER *parent, int x, int y, int width, int height));
87+
AL_FUNC(void, set_zbuffer, (ZBUFFER *zbuf));
88+
AL_FUNC(void, clear_zbuffer, (ZBUFFER *zbuf, float z));
89+
AL_FUNC(void, destroy_zbuffer, (ZBUFFER *zbuf));
90+
91+
AL_FUNC(int, create_scene, (int nedge, int npoly));
92+
AL_FUNC(void, clear_scene, (struct BITMAP* bmp));
93+
AL_FUNC(void, destroy_scene, (void));
94+
AL_FUNC(int, scene_polygon3d, (int type, struct BITMAP *texture, int vx, V3D *vtx[]));
95+
AL_FUNC(int, scene_polygon3d_f, (int type, struct BITMAP *texture, int vx, V3D_f *vtx[]));
96+
AL_FUNC(void, render_scene, (void));
97+
98+
#ifdef __cplusplus
99+
}
100+
#endif
101+
102+
#endif /* ifndef ALLEGRO_3D_H */
103+
104+

external/include/allegro/3dmaths.h

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/* ______ ___ ___
2+
* /\ _ \ /\_ \ /\_ \
3+
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
4+
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
5+
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
6+
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7+
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8+
* /\____/
9+
* \_/__/
10+
*
11+
* 3D oriented math routines.
12+
*
13+
* By Shawn Hargreaves.
14+
*
15+
* See readme.txt for copyright information.
16+
*/
17+
18+
19+
#ifndef ALLEGRO_3DMATHS_H
20+
#define ALLEGRO_3DMATHS_H
21+
22+
#include "base.h"
23+
#include "fixed.h"
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
struct QUAT;
30+
struct MATRIX_f;
31+
32+
AL_FUNC(fixed, vector_length, (fixed x, fixed y, fixed z));
33+
AL_FUNC(float, vector_length_f, (float x, float y, float z));
34+
35+
AL_FUNC(void, normalize_vector, (fixed *x, fixed *y, fixed *z));
36+
AL_FUNC(void, normalize_vector_f, (float *x, float *y, float *z));
37+
38+
AL_FUNC(void, cross_product, (fixed x1, fixed y_1, fixed z1, fixed x2, fixed y2, fixed z2, fixed *xout, fixed *yout, fixed *zout));
39+
AL_FUNC(void, cross_product_f, (float x1, float y_1, float z1, float x2, float y2, float z2, float *xout, float *yout, float *zout));
40+
41+
AL_VAR(fixed, _persp_xscale);
42+
AL_VAR(fixed, _persp_yscale);
43+
AL_VAR(fixed, _persp_xoffset);
44+
AL_VAR(fixed, _persp_yoffset);
45+
46+
AL_VAR(float, _persp_xscale_f);
47+
AL_VAR(float, _persp_yscale_f);
48+
AL_VAR(float, _persp_xoffset_f);
49+
AL_VAR(float, _persp_yoffset_f);
50+
51+
AL_FUNC(void, set_projection_viewport, (int x, int y, int w, int h));
52+
53+
AL_FUNC(void, quat_to_matrix, (AL_CONST struct QUAT *q, struct MATRIX_f *m));
54+
AL_FUNC(void, matrix_to_quat, (AL_CONST struct MATRIX_f *m, struct QUAT *q));
55+
56+
#ifdef __cplusplus
57+
}
58+
#endif
59+
60+
#include "inline/3dmaths.inl"
61+
62+
#endif /* ifndef ALLEGRO_3DMATHS_H */
63+
64+

0 commit comments

Comments
 (0)