doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alc.h
Go to the documentation of this file.
1 #ifndef _ALC_H_
2 #define _ALC_H_
3 
4 #include "altypes.h"
5 #include "alctypes.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #ifdef _WIN32
12  #ifdef _LIB
13  #define ALCAPI __declspec(dllexport)
14  #else
15  #define ALCAPI __declspec(dllimport)
16  typedef ALCvoid ALCdevice;
17  typedef ALCvoid ALCcontext;
18  #endif
19  #define ALCAPIENTRY __cdecl
20 #else
21  #ifdef TARGET_OS_MAC
22  #if TARGET_OS_MAC
23  #pragma export on
24  #endif
25  #endif
26  #define ALCAPI
27  #define ALCAPIENTRY
28  typedef ALCvoid ALCdevice;
30 #endif
31 
32 #ifndef ALC_NO_PROTOTYPES
33 
36 
37 ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName);
38 ALCAPI ALCvoid ALCAPIENTRY alcCloseDevice(ALCdevice *device);
39 
40 ALCAPI ALCcontext*ALCAPIENTRY alcCreateContext(ALCdevice *device,ALCint *attrList);
44 ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
47 
48 ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device);
49 
50 ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device,ALCubyte *extName);
51 ALCAPI ALCvoid * ALCAPIENTRY alcGetProcAddress(ALCdevice *device,ALCubyte *funcName);
52 ALCAPI ALCenum ALCAPIENTRY alcGetEnumValue(ALCdevice *device,ALCubyte *enumName);
53 
54 #else /* AL_NO_PROTOTYPES */
55 
56 ALCAPI ALCubyte* ALCAPIENTRY (*alcGetString)(ALCdevice *device,ALCenum param);
58 
59 ALCAPI ALCdevice* ALCAPIENTRY (*alcOpenDevice)(ALubyte *deviceName);
60 ALCAPI ALCvoid ALCAPIENTRY (*alcCloseDevice)(ALCdevice *device);
61 
62 ALCAPI ALCcontext*ALCAPIENTRY (*alcCreateContext)(ALCdevice *device,ALCint *attrList);
66 ALCAPI ALCdevice* ALCAPIENTRY (*alcGetContextsDevice)(ALCcontext *context);
69 
70 ALCAPI ALCenum ALCAPIENTRY (*alcGetError)(ALCdevice *device);
71 
72 ALCAPI ALCboolean ALCAPIENTRY (*alcIsExtensionPresent)(ALCdevice *device,ALCubyte *extName);
73 ALCAPI ALCvoid * ALCAPIENTRY (*alcGetProcAddress)(ALCdevice *device,ALCubyte *funcName);
74 ALCAPI ALCenum ALCAPIENTRY (*alcGetEnumValue)(ALCdevice *device,ALCubyte *enumName);
75 
76 #endif /* AL_NO_PROTOTYPES */
77 
78 #ifdef TARGET_OS_MAC
79  #if TARGET_OS_MAC
80  #pragma export off
81  #endif
82 #endif
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif
void ALCvoid
ALC void type.
Definition: alctypes.h:60
ALCAPI ALCcontext *ALCAPIENTRY alcGetCurrentContext(ALCvoid)
ALCAPI ALCvoid ALCAPIENTRY alcSuspendContext(ALCcontext *context)
Definition: stubs.cpp:47
ALCAPI ALCubyte *ALCAPIENTRY alcGetString(ALCdevice *device, ALCenum param)
Definition: stubs.cpp:77
unsigned char ALCubyte
ALC 8bit unsigned byte.
Definition: alctypes.h:36
GLfloat param
Definition: glext.h:3038
#define ALCAPI
Definition: alc.h:26
ALCAPI ALCenum ALCAPIENTRY alcGetEnumValue(ALCdevice *device, ALCubyte *enumName)
unsigned char ALubyte
OpenAL 8bit unsigned byte.
Definition: altypes.h:36
unsigned int ALCsizei
ALC 32bit type.
Definition: alctypes.h:57
ALCAPI ALCvoid ALCAPIENTRY alcProcessContext(ALCcontext *context)
Definition: stubs.cpp:69
ALCAPI ALCvoid ALCAPIENTRY alcCloseDevice(ALCdevice *device)
Definition: stubs.cpp:120
ALCAPI ALCvoid *ALCAPIENTRY alcGetProcAddress(ALCdevice *device, ALCubyte *funcName)
char ALCboolean
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: alctypes.h:30
ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *data)
int ALCint
ALC 32bit signed integer type.
Definition: alctypes.h:48
#define ALCAPIENTRY
Definition: alc.h:27
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:2853
ALCvoid ALCdevice
Definition: alc.h:28
ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device, ALCubyte *extName)
ALCAPI ALCdevice *ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName)
Definition: stubs.cpp:108
#define context
Definition: getdate.c:236
ALCAPI ALCvoid ALCAPIENTRY alcDestroyContext(ALCcontext *context)
Definition: stubs.cpp:73
GLsizeiptr size
Definition: glext.h:3112
ALCvoid ALCcontext
Definition: alc.h:29
int ALCenum
ALC enumerations.
Definition: alctypes.h:63
ALCAPI ALCboolean ALCAPIENTRY alcMakeContextCurrent(ALCcontext *context)
Definition: stubs.cpp:65
ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device)
ALCAPI ALCcontext *ALCAPIENTRY alcCreateContext(ALCdevice *device, ALCint *attrList)
ALCAPI ALCdevice *ALCAPIENTRY alcGetContextsDevice(ALCcontext *context)