summaryrefslogtreecommitdiffstats
path: root/make/config/oculusvr/oculusvr-common.cfg
blob: cf8419d707c6cead49fa757ca00435c123a8480d (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Package com.jogamp.oculusvr

# Specify output directories
HierarchicalNativeOutput false
JavaOutputDir gensrc/classes
NativeOutputDir gensrc/native/oculusvr

# Raise OVRException instead of RuntimeException in glue code
RuntimeExceptionType OVRException

# We utilize OvrHmdContext as specified below as a 'typesafe' opaque instance,
# which is typedefed to ovrHmd - hence no type-unsafe opaque 'long' is required.
#   typedef struct ovrHmdStruct {
#   } OvrHmdContext;
#Opaque long ovrHmd

# Mappings for data types
Opaque boolean ovrBool

# Not native sized: CType['uintptr_t *', size [fixed false, lnx64 64], [array*1]]
Ignore ovrRenderAPIConfig.PlatformData
# Not native sized: CType['uintptr_t *', size [fixed false, lnx64 64], [array*1]]
Ignore ovrTexture.PlatformData

# FIXME: Add wrapper for native/java callbacks
Ignore ovrLogCallback
Ignore ovrInitParams.LogCallback

# We use the SDK in headless mode:
#    #define HEADLESS_APP 1
# implying: ovrHmdCap_ExtendDesktop
#
# SDK rendering disabled
Ignore ovr_InitializeRenderingShim
Ignore ovr_InitializeRenderingShimVersion
Ignore ovrHmd_ConfigureRendering
Ignore ovrHmd_AttachToWindow
Ignore ovrHmd_BeginFrame
Ignore ovrHmd_EndFrame
# misc
Ignore ovrHmd_RegisterPostDistortionCallback
# HSW = Health and Safety Warning
Ignore ovrHSWDisplayState
Ignore ovrHmd_GetHSWDisplayState
Ignore ovrHmd_DismissHSWDisplay

# These routines use or return strings
ReturnsString ovrHmd_GetLastError
ReturnsString ovrHmd_GetLatencyTestResult
ReturnsString ovrHmd_GetString

ReturnsString ovrHmdDesc.ProductName
ReturnsString ovrHmdDesc.Manufacturer
ReturnsString ovrHmdDesc.DisplayDeviceName
ReturnsString ovrHmdDesc.SerialNumber

ReturnedArrayLength ovrHmdDesc.Handle 1
ReturnedArrayLength ovrDistortionMesh.pVertexData getVertexCount()
ReturnedArrayLength ovrDistortionMesh.pIndexData getIndexCount()

ReturnValueCapacity ovrHmd_Create sizeof(ovrHmdDesc)
ReturnValueCapacity ovrHmd_CreateDebug sizeof(ovrHmdDesc)

JavaPrologue ovr_Initialize if( !isAvailable() ) { return false; }
JavaPrologue ovrHmd_Create if( !isAvailable() ) { return null; }
JavaPrologue ovrHmd_CreateDebug if( !isAvailable() ) { return null; }

ArgumentIsString ovrHmd_GetFloat 1
ArgumentIsString ovrHmd_SetFloat 1
ArgumentIsString ovrHmd_GetFloatArray 1
ArgumentIsString ovrHmd_SetFloatArray 1
ArgumentIsString ovrHmd_GetArraySize 1