Quake II RTX doxygen  1.0 dev
dynamic.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2010 Andrey Nazarov
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 
19 #define AL_NO_PROTOTYPES
20 #include <AL/al.h>
21 
22 #ifndef AL_SOFT_loop_points
23 #define AL_SOFT_loop_points 1
24 #define AL_LOOP_POINTS_SOFT 0x2015
25 #endif
26 
27 #define QAL_IMP \
28  QAL(LPALENABLE, alEnable); \
29  QAL(LPALDISABLE, alDisable); \
30  QAL(LPALISENABLED, alIsEnabled); \
31  QAL(LPALGETSTRING, alGetString); \
32  QAL(LPALGETBOOLEANV, alGetBooleanv); \
33  QAL(LPALGETINTEGERV, alGetIntegerv); \
34  QAL(LPALGETFLOATV, alGetFloatv); \
35  QAL(LPALGETDOUBLEV, alGetDoublev); \
36  QAL(LPALGETBOOLEAN, alGetBoolean); \
37  QAL(LPALGETINTEGER, alGetInteger); \
38  QAL(LPALGETFLOAT, alGetFloat); \
39  QAL(LPALGETDOUBLE, alGetDouble); \
40  QAL(LPALGETERROR, alGetError); \
41  QAL(LPALISEXTENSIONPRESENT, alIsExtensionPresent); \
42  QAL(LPALGETPROCADDRESS, alGetProcAddress); \
43  QAL(LPALGETENUMVALUE, alGetEnumValue); \
44  QAL(LPALLISTENERF, alListenerf); \
45  QAL(LPALLISTENER3F, alListener3f); \
46  QAL(LPALLISTENERFV, alListenerfv); \
47  QAL(LPALLISTENERI, alListeneri); \
48  QAL(LPALLISTENER3I, alListener3i); \
49  QAL(LPALLISTENERIV, alListeneriv); \
50  QAL(LPALGETLISTENERF, alGetListenerf); \
51  QAL(LPALGETLISTENER3F, alGetListener3f); \
52  QAL(LPALGETLISTENERFV, alGetListenerfv); \
53  QAL(LPALGETLISTENERI, alGetListeneri); \
54  QAL(LPALGETLISTENER3I, alGetListener3i); \
55  QAL(LPALGETLISTENERIV, alGetListeneriv); \
56  QAL(LPALGENSOURCES, alGenSources); \
57  QAL(LPALDELETESOURCES, alDeleteSources); \
58  QAL(LPALISSOURCE, alIsSource); \
59  QAL(LPALSOURCEF, alSourcef); \
60  QAL(LPALSOURCE3F, alSource3f); \
61  QAL(LPALSOURCEFV, alSourcefv); \
62  QAL(LPALSOURCEI, alSourcei); \
63  QAL(LPALSOURCE3I, alSource3i); \
64  QAL(LPALSOURCEIV, alSourceiv); \
65  QAL(LPALGETSOURCEF, alGetSourcef); \
66  QAL(LPALGETSOURCE3F, alGetSource3f); \
67  QAL(LPALGETSOURCEFV, alGetSourcefv); \
68  QAL(LPALGETSOURCEI, alGetSourcei); \
69  QAL(LPALGETSOURCE3I, alGetSource3i); \
70  QAL(LPALGETSOURCEIV, alGetSourceiv); \
71  QAL(LPALSOURCEPLAYV, alSourcePlayv); \
72  QAL(LPALSOURCESTOPV, alSourceStopv); \
73  QAL(LPALSOURCEREWINDV, alSourceRewindv); \
74  QAL(LPALSOURCEPAUSEV, alSourcePausev); \
75  QAL(LPALSOURCEPLAY, alSourcePlay); \
76  QAL(LPALSOURCESTOP, alSourceStop); \
77  QAL(LPALSOURCEREWIND, alSourceRewind); \
78  QAL(LPALSOURCEPAUSE, alSourcePause); \
79  QAL(LPALSOURCEQUEUEBUFFERS, alSourceQueueBuffers); \
80  QAL(LPALSOURCEUNQUEUEBUFFERS, alSourceUnqueueBuffers); \
81  QAL(LPALGENBUFFERS, alGenBuffers); \
82  QAL(LPALDELETEBUFFERS, alDeleteBuffers); \
83  QAL(LPALISBUFFER, alIsBuffer); \
84  QAL(LPALBUFFERDATA, alBufferData); \
85  QAL(LPALBUFFERF, alBufferf); \
86  QAL(LPALBUFFER3F, alBuffer3f); \
87  QAL(LPALBUFFERFV, alBufferfv); \
88  QAL(LPALBUFFERI, alBufferi); \
89  QAL(LPALBUFFER3I, alBuffer3i); \
90  QAL(LPALBUFFERIV, alBufferiv); \
91  QAL(LPALGETBUFFERF, alGetBufferf); \
92  QAL(LPALGETBUFFER3F, alGetBuffer3f); \
93  QAL(LPALGETBUFFERFV, alGetBufferfv); \
94  QAL(LPALGETBUFFERI, alGetBufferi); \
95  QAL(LPALGETBUFFER3I, alGetBuffer3i); \
96  QAL(LPALGETBUFFERIV, alGetBufferiv); \
97  QAL(LPALDOPPLERFACTOR, alDopplerFactor); \
98  QAL(LPALDOPPLERVELOCITY, alDopplerVelocity); \
99  QAL(LPALSPEEDOFSOUND, alSpeedOfSound); \
100  QAL(LPALDISTANCEMODEL, alDistanceModel);
101 
102 #define QAL(type, func) extern type q##func
103 QAL_IMP
104 #undef QAL
105 
106 qboolean QAL_Init(void);
107 void QAL_Shutdown(void);
108 
QAL_IMP
#define QAL_IMP
Definition: dynamic.h:27
QAL_Shutdown
void QAL_Shutdown(void)
Definition: dynamic.c:64
QAL_Init
QAL_IMP qboolean QAL_Init(void)
Definition: dynamic.c:92