Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
19 #include "shared/shared.h"
20 #include "system/system.h"
21 #include "common/cvar.h"
22 #include "common/common.h"
23 #include "common/files.h"
28 QAL(LPALCCREATECONTEXT, alcCreateContext); \
29 QAL(LPALCMAKECONTEXTCURRENT, alcMakeContextCurrent); \
30 QAL(LPALCPROCESSCONTEXT, alcProcessContext); \
31 QAL(LPALCSUSPENDCONTEXT, alcSuspendContext); \
32 QAL(LPALCDESTROYCONTEXT, alcDestroyContext); \
33 QAL(LPALCGETCURRENTCONTEXT, alcGetCurrentContext); \
34 QAL(LPALCGETCONTEXTSDEVICE, alcGetContextsDevice); \
35 QAL(LPALCOPENDEVICE, alcOpenDevice); \
36 QAL(LPALCCLOSEDEVICE, alcCloseDevice); \
37 QAL(LPALCGETERROR, alcGetError); \
38 QAL(LPALCISEXTENSIONPRESENT, alcIsExtensionPresent); \
39 QAL(LPALCGETPROCADDRESS, alcGetProcAddress); \
40 QAL(LPALCGETENUMVALUE, alcGetEnumValue); \
41 QAL(LPALCGETSTRING, alcGetString); \
42 QAL(LPALCGETINTEGERV, alcGetIntegerv); \
43 QAL(LPALCCAPTUREOPENDEVICE, alcCaptureOpenDevice); \
44 QAL(LPALCCAPTURECLOSEDEVICE, alcCaptureCloseDevice); \
45 QAL(LPALCCAPTURESTART, alcCaptureStart); \
46 QAL(LPALCCAPTURESTOP, alcCaptureStop); \
47 QAL(LPALCCAPTURESAMPLES, alcCaptureSamples);
56 #define QAL(type, func) static type q##func
60 #define QAL(type, func) type q##func
67 qalcMakeContextCurrent(NULL);
76 #define QAL(type, func) q##func = NULL
105 #define QAL(type, func) if ((q##func = Sys_GetProcAddress(handle, #func)) == NULL) goto fail;
122 if (!qalcMakeContextCurrent(
context)) {
static cvar_t * al_device
QAL_IMP void QAL_Shutdown(void)
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags)
static ALCdevice * device
static cvar_t * al_driver
char * va(const char *format,...)
void * Sys_LoadLibrary(const char *path, const char *sym, void **handle)
void FS_SanitizeFilenameVariable(cvar_t *var)
static ALCcontext * context
void Com_SetLastError(const char *msg)
void Sys_FreeLibrary(void *handle)