diff options
author | Sven Gothel <[email protected]> | 2014-06-25 10:18:56 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-06-25 10:18:56 +0200 |
commit | a515faf5e7d679b7ad87a05fa8fc81ab148bcd41 (patch) | |
tree | 299dec6843e76f6a61b6de96720505b9082dd64d /make/config | |
parent | e1dc63254918092b1066983657194b198f6389e5 (diff) |
Bug 1021: Enhance OVR GlueGen Mapping / Adapt to GlueGen commit 9ee44e1a289ecbac024662dd5a2ffc42e8add023 (Bug 1025)
Diffstat (limited to 'make/config')
-rw-r--r-- | make/config/nativewindow/jawt-common.cfg | 5 | ||||
-rw-r--r-- | make/config/oculusvr/oculusvr-common.cfg | 22 | ||||
-rw-r--r-- | make/config/oculusvr/oculusvr.c | 4 |
3 files changed, 24 insertions, 7 deletions
diff --git a/make/config/nativewindow/jawt-common.cfg b/make/config/nativewindow/jawt-common.cfg index 55f3f368b..41129e630 100644 --- a/make/config/nativewindow/jawt-common.cfg +++ b/make/config/nativewindow/jawt-common.cfg @@ -10,10 +10,11 @@ HierarchicalNativeOutput false Opaque boolean jboolean Opaque long struct jawt_DrawingSurface* -ReturnValueCapacity GetDrawingSurface sizeof(JAWT_DrawingSurface) -ReturnValueCapacity GetDrawingSurfaceInfo sizeof(JAWT_DrawingSurfaceInfo) +ReturnValueCapacity JAWT.GetDrawingSurface sizeof(JAWT_DrawingSurface) +ReturnValueCapacity JAWT_DrawingSurface.GetDrawingSurfaceInfo sizeof(JAWT_DrawingSurfaceInfo) IgnoreField JAWT GetComponent +IgnoreField JAWT_DrawingSurface target IgnoreField JAWT_DrawingSurfaceInfo platformInfo IncludeAs CustomJavaCode JAWT jawt-CustomJavaCode.java diff --git a/make/config/oculusvr/oculusvr-common.cfg b/make/config/oculusvr/oculusvr-common.cfg index 4baa35f0b..c1e4d9cfd 100644 --- a/make/config/oculusvr/oculusvr-common.cfg +++ b/make/config/oculusvr/oculusvr-common.cfg @@ -8,11 +8,11 @@ NativeOutputDir gensrc/native/oculusvr # Raise OVRException instead of RuntimeException in glue code RuntimeExceptionType OVRException -# We also have to hack its return type for now because we can't make -# just that void* opaque -Opaque long ovrHmd - -#ReturnValueCapacity alcOpenDevice 0 +# 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 @@ -25,6 +25,18 @@ ReturnsString ovrHmd_GetLastError ReturnsString ovrHmd_GetLatencyTestResult ReturnsString ovrHmd_GetString +ReturnsString ovrHmdDesc.ProductName +ReturnsString ovrHmdDesc.Manufacturer +ReturnsString ovrHmdDesc.DisplayDeviceName +ReturnsString ovrSensorDesc.SerialNumber + +ReturnedArrayLength ovrHmdDesc.Handle 1 +ReturnedArrayLength ovrDistortionMesh.pVertexData getVertexCount() +ReturnedArrayLength ovrDistortionMesh.pIndexData getIndexCount() + +ReturnValueCapacity ovrHmd_Create sizeof(ovrHmd) +ReturnValueCapacity ovrHmd_CreateDebug sizeof(ovrHmd) + ArgumentIsString ovrHmd_GetFloat 1 ArgumentIsString ovrHmd_SetFloat 1 ArgumentIsString ovrHmd_GetFloatArray 1 diff --git a/make/config/oculusvr/oculusvr.c b/make/config/oculusvr/oculusvr.c index 6d850a380..7486ce35d 100644 --- a/make/config/oculusvr/oculusvr.c +++ b/make/config/oculusvr/oculusvr.c @@ -1 +1,5 @@ + +typedef struct ovrHmdStruct { +} OvrHmdContext; + #include "OVR_CAPI.h" |