blob: e39811226bc1fa5a075fb2ad8a5ec8f4f14d5d41 (
plain)
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
|
# This .cfg file is used to generate the JOAL interface.
Include joal-common.cfg
Style InterfaceAndImpl
JavaClass AL
ImplPackage com.jogamp.openal.impl
ImplJavaClass ALImpl
Extends AL ALConstants
EmitProcAddressTable true
ProcAddressTableClassName ALProcAddressTable
GetProcAddressTableExpr alProcAddressTable
ProcAddressNameExpr LP $UPPERCASE({0})
Import com.jogamp.openal.*
Import com.jogamp.openal.impl.*
# Factor out the OpenAL constants into their own interface
Ignore ^AL_.+
# This routine is not exposed in the public API
AccessControl alGetProcAddress PACKAGE_PRIVATE
# We also have to hack its return type for now because we can't make
# just that void* opaque
Opaque long ALproc
# This routine doesn't seem to exist
Ignore alHint
# Mappings for data types
Opaque boolean ALboolean
# These routines use or return strings
ReturnsString alGetString
ArgumentIsString alIsExtensionPresent 0
ArgumentIsString alGetEnumValue 0
ArgumentIsString alGetProcAddress 0
IncludeAs CustomJavaCode ALImpl joal-common-CustomJavaCode.java
# Provide #includes to native code
CustomCCode #include "al.h"
CustomCCode #ifndef _MSC_VER /* Non-Windows platforms */
CustomCCode #define __cdecl /* Trim non-standard keyword */
CustomCCode #endif
CustomCCode #include "efx.h"
IncludeAs CustomCCode joal-common-CustomCCode.c
|