openvr: Support v1.2.10

This commit is contained in:
Andrew Eikum
2019-07-03 08:14:33 -05:00
parent 235182da12
commit 94568eaa23
37 changed files with 5521 additions and 106 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import os
import re
sdk_versions = [
"v1.2.10",
"v1.1.3b",
"v1.0.17",
"v1.0.16",
@@ -1099,7 +1100,7 @@ for sdkver in sdk_versions:
if not os.path.isfile(input_name):
continue
index = clang.cindex.Index.create()
tu = index.parse(input_name, args=['-x', 'c++', '-std=c++11', '-DGNUC', '-Iopenvr_%s/' % sdkver, '-I/usr/lib/clang/7.0.1/include/'])
tu = index.parse(input_name, args=['-x', 'c++', '-std=c++11', '-DGNUC', '-Iopenvr_%s/' % sdkver, '-I/usr/lib/clang/8.0.0/include/'])
diagnostics = list(tu.diagnostics)
if len(diagnostics) > 0:
@@ -0,0 +1,36 @@
//========= Copyright Valve Corporation ============//
#include "openvr.h"
namespace vr
{
class IVRClientCore
{
public:
/** Initializes the system */
virtual EVRInitError Init( vr::EVRApplicationType eApplicationType, const char *pStartupInfo ) = 0;
/** cleans up everything in vrclient.dll and prepares the DLL to be unloaded */
virtual void Cleanup() = 0;
/** checks to see if the specified interface/version is supported in this vrclient.dll */
virtual EVRInitError IsInterfaceVersionValid( const char *pchInterfaceVersion ) = 0;
/** Retrieves any interface from vrclient.dll */
virtual void *GetGenericInterface( const char *pchNameAndVersion, EVRInitError *peError ) = 0;
/** Returns true if any driver has an HMD attached. Can be called outside of Init/Cleanup */
virtual bool BIsHmdPresent() = 0;
/** Returns an English error string from inside vrclient.dll which might be newer than the API DLL */
virtual const char *GetEnglishStringForHmdError( vr::EVRInitError eError ) = 0;
/** Returns an error symbol from inside vrclient.dll which might be newer than the API DLL */
virtual const char *GetIDForVRInitError( vr::EVRInitError eError ) = 0;
};
static const char * const IVRClientCore_Version = "IVRClientCore_003";
}
File diff suppressed because it is too large Load Diff
+56 -5
View File
@@ -2546,7 +2546,7 @@ EVRInputError __thiscall IVRInput_005_ShowBindingsForActionSet(void *_this, VRAc
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer)
EIOBufferError __thiscall IVRIOBuffer_002_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer)
{
push_ptr_parameter(_this);
push_ptr_parameter(pchPath);
@@ -2557,14 +2557,14 @@ EIOBufferError __thiscall IVRIOBuffer_001_Open(void *_this, const char * pchPath
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Close(void *_this, IOBufferHandle_t ulBuffer)
EIOBufferError __thiscall IVRIOBuffer_002_Close(void *_this, IOBufferHandle_t ulBuffer)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead)
EIOBufferError __thiscall IVRIOBuffer_002_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
@@ -2574,7 +2574,7 @@ EIOBufferError __thiscall IVRIOBuffer_001_Read(void *_this, IOBufferHandle_t ulB
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes)
EIOBufferError __thiscall IVRIOBuffer_002_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
@@ -2583,7 +2583,14 @@ EIOBufferError __thiscall IVRIOBuffer_001_Write(void *_this, IOBufferHandle_t ul
return 0;
}
PropertyContainerHandle_t __thiscall IVRIOBuffer_001_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer)
PropertyContainerHandle_t __thiscall IVRIOBuffer_002_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
return 0;
}
bool __thiscall IVRIOBuffer_002_HasReaders(void *_this, IOBufferHandle_t ulBuffer)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
@@ -2638,6 +2645,50 @@ const char * __thiscall IVRClientCore_003_GetIDForVRInitError(void *_this, EVRIn
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer)
{
push_ptr_parameter(_this);
push_ptr_parameter(pchPath);
push_uint32_parameter(mode);
push_uint32_parameter(unElementSize);
push_uint32_parameter(unElements);
push_ptr_parameter(pulBuffer);
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Close(void *_this, IOBufferHandle_t ulBuffer)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
push_ptr_parameter(pDst);
push_uint32_parameter(unBytes);
push_ptr_parameter(punRead);
return 0;
}
EIOBufferError __thiscall IVRIOBuffer_001_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
push_ptr_parameter(pSrc);
push_uint32_parameter(unBytes);
return 0;
}
PropertyContainerHandle_t __thiscall IVRIOBuffer_001_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer)
{
push_ptr_parameter(_this);
push_uint64_parameter(ulBuffer);
return 0;
}
bool __thiscall IVRChaperoneSetup_005_CommitWorkingCopy(void *_this, EChaperoneConfigFile configFile)
{
push_ptr_parameter(_this);
+20 -6
View File
@@ -671,17 +671,19 @@ EVRInputError __thiscall IVRInput_005_ShowActionOrigins(void *_this, VRActionSet
EVRInputError __thiscall IVRInput_005_ShowBindingsForActionSet(void *_this, VRActiveActionSet_t * pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount, VRInputValueHandle_t originToHighlight);
void test_capi_thunks_IVRIOBuffer_001(void);
void test_capi_thunks_IVRIOBuffer_002(void);
EIOBufferError __thiscall IVRIOBuffer_001_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer);
EIOBufferError __thiscall IVRIOBuffer_002_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer);
EIOBufferError __thiscall IVRIOBuffer_001_Close(void *_this, IOBufferHandle_t ulBuffer);
EIOBufferError __thiscall IVRIOBuffer_002_Close(void *_this, IOBufferHandle_t ulBuffer);
EIOBufferError __thiscall IVRIOBuffer_001_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead);
EIOBufferError __thiscall IVRIOBuffer_002_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead);
EIOBufferError __thiscall IVRIOBuffer_001_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes);
EIOBufferError __thiscall IVRIOBuffer_002_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes);
PropertyContainerHandle_t __thiscall IVRIOBuffer_001_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer);
PropertyContainerHandle_t __thiscall IVRIOBuffer_002_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer);
bool __thiscall IVRIOBuffer_002_HasReaders(void *_this, IOBufferHandle_t ulBuffer);
void test_capi_thunks_IVRClientCore_003(void);
@@ -699,6 +701,18 @@ const char * __thiscall IVRClientCore_003_GetEnglishStringForHmdError(void *_thi
const char * __thiscall IVRClientCore_003_GetIDForVRInitError(void *_this, EVRInitError eError);
void test_capi_thunks_IVRIOBuffer_001(void);
EIOBufferError __thiscall IVRIOBuffer_001_Open(void *_this, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer);
EIOBufferError __thiscall IVRIOBuffer_001_Close(void *_this, IOBufferHandle_t ulBuffer);
EIOBufferError __thiscall IVRIOBuffer_001_Read(void *_this, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead);
EIOBufferError __thiscall IVRIOBuffer_001_Write(void *_this, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes);
PropertyContainerHandle_t __thiscall IVRIOBuffer_001_PropertyContainer(void *_this, IOBufferHandle_t ulBuffer);
void test_capi_thunks_IVRChaperoneSetup_005(void);
bool __thiscall IVRChaperoneSetup_005_CommitWorkingCopy(void *_this, EChaperoneConfigFile configFile);
+98 -35
View File
@@ -3012,58 +3012,66 @@ void test_capi_thunks_IVRInput_005(void)
VirtualFree(t, 0, MEM_RELEASE);
}
void test_capi_thunks_IVRIOBuffer_001(void)
void test_capi_thunks_IVRIOBuffer_002(void)
{
struct thunk *t = alloc_thunks(1);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Open, 5, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Open)(const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer) = (void *)t;
init_thunk(t, this_ptr_value, IVRIOBuffer_002_Open, 5, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_002_Open)(const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Open((void *)1, 2, 3, 4, (void *)5);
check_ptr_parameter("IVRIOBuffer_001_Open", this_ptr_value);
check_ptr_parameter("IVRIOBuffer_001_Open", (void *)1);
check_uint32_parameter("IVRIOBuffer_001_Open", 2);
check_uint32_parameter("IVRIOBuffer_001_Open", 3);
check_uint32_parameter("IVRIOBuffer_001_Open", 4);
check_ptr_parameter("IVRIOBuffer_001_Open", (void *)5);
capi_IVRIOBuffer_002_Open((void *)1, 2, 3, 4, (void *)5);
check_ptr_parameter("IVRIOBuffer_002_Open", this_ptr_value);
check_ptr_parameter("IVRIOBuffer_002_Open", (void *)1);
check_uint32_parameter("IVRIOBuffer_002_Open", 2);
check_uint32_parameter("IVRIOBuffer_002_Open", 3);
check_uint32_parameter("IVRIOBuffer_002_Open", 4);
check_ptr_parameter("IVRIOBuffer_002_Open", (void *)5);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Close, 1, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Close)(IOBufferHandle_t ulBuffer) = (void *)t;
init_thunk(t, this_ptr_value, IVRIOBuffer_002_Close, 1, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_002_Close)(IOBufferHandle_t ulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Close(1);
check_ptr_parameter("IVRIOBuffer_001_Close", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Close", 1);
capi_IVRIOBuffer_002_Close(1);
check_ptr_parameter("IVRIOBuffer_002_Close", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_002_Close", 1);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Read, 4, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Read)(IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead) = (void *)t;
init_thunk(t, this_ptr_value, IVRIOBuffer_002_Read, 4, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_002_Read)(IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Read(1, (void *)2, 3, (void *)4);
check_ptr_parameter("IVRIOBuffer_001_Read", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Read", 1);
check_ptr_parameter("IVRIOBuffer_001_Read", (void *)2);
check_uint32_parameter("IVRIOBuffer_001_Read", 3);
check_ptr_parameter("IVRIOBuffer_001_Read", (void *)4);
capi_IVRIOBuffer_002_Read(1, (void *)2, 3, (void *)4);
check_ptr_parameter("IVRIOBuffer_002_Read", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_002_Read", 1);
check_ptr_parameter("IVRIOBuffer_002_Read", (void *)2);
check_uint32_parameter("IVRIOBuffer_002_Read", 3);
check_ptr_parameter("IVRIOBuffer_002_Read", (void *)4);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Write, 3, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Write)(IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes) = (void *)t;
init_thunk(t, this_ptr_value, IVRIOBuffer_002_Write, 3, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_002_Write)(IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Write(1, (void *)2, 3);
check_ptr_parameter("IVRIOBuffer_001_Write", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Write", 1);
check_ptr_parameter("IVRIOBuffer_001_Write", (void *)2);
check_uint32_parameter("IVRIOBuffer_001_Write", 3);
capi_IVRIOBuffer_002_Write(1, (void *)2, 3);
check_ptr_parameter("IVRIOBuffer_002_Write", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_002_Write", 1);
check_ptr_parameter("IVRIOBuffer_002_Write", (void *)2);
check_uint32_parameter("IVRIOBuffer_002_Write", 3);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_PropertyContainer, 1, FALSE, FALSE);
PropertyContainerHandle_t (__stdcall *capi_IVRIOBuffer_001_PropertyContainer)(IOBufferHandle_t ulBuffer) = (void *)t;
init_thunk(t, this_ptr_value, IVRIOBuffer_002_PropertyContainer, 1, FALSE, FALSE);
PropertyContainerHandle_t (__stdcall *capi_IVRIOBuffer_002_PropertyContainer)(IOBufferHandle_t ulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_PropertyContainer(1);
check_ptr_parameter("IVRIOBuffer_001_PropertyContainer", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_PropertyContainer", 1);
capi_IVRIOBuffer_002_PropertyContainer(1);
check_ptr_parameter("IVRIOBuffer_002_PropertyContainer", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_002_PropertyContainer", 1);
init_thunk(t, this_ptr_value, IVRIOBuffer_002_HasReaders, 1, FALSE, FALSE);
bool (__stdcall *capi_IVRIOBuffer_002_HasReaders)(IOBufferHandle_t ulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_002_HasReaders(1);
check_ptr_parameter("IVRIOBuffer_002_HasReaders", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_002_HasReaders", 1);
VirtualFree(t, 0, MEM_RELEASE);
}
@@ -3129,6 +3137,61 @@ void test_capi_thunks_IVRClientCore_003(void)
VirtualFree(t, 0, MEM_RELEASE);
}
void test_capi_thunks_IVRIOBuffer_001(void)
{
struct thunk *t = alloc_thunks(1);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Open, 5, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Open)(const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Open((void *)1, 2, 3, 4, (void *)5);
check_ptr_parameter("IVRIOBuffer_001_Open", this_ptr_value);
check_ptr_parameter("IVRIOBuffer_001_Open", (void *)1);
check_uint32_parameter("IVRIOBuffer_001_Open", 2);
check_uint32_parameter("IVRIOBuffer_001_Open", 3);
check_uint32_parameter("IVRIOBuffer_001_Open", 4);
check_ptr_parameter("IVRIOBuffer_001_Open", (void *)5);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Close, 1, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Close)(IOBufferHandle_t ulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Close(1);
check_ptr_parameter("IVRIOBuffer_001_Close", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Close", 1);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Read, 4, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Read)(IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Read(1, (void *)2, 3, (void *)4);
check_ptr_parameter("IVRIOBuffer_001_Read", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Read", 1);
check_ptr_parameter("IVRIOBuffer_001_Read", (void *)2);
check_uint32_parameter("IVRIOBuffer_001_Read", 3);
check_ptr_parameter("IVRIOBuffer_001_Read", (void *)4);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_Write, 3, FALSE, FALSE);
EIOBufferError (__stdcall *capi_IVRIOBuffer_001_Write)(IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_Write(1, (void *)2, 3);
check_ptr_parameter("IVRIOBuffer_001_Write", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_Write", 1);
check_ptr_parameter("IVRIOBuffer_001_Write", (void *)2);
check_uint32_parameter("IVRIOBuffer_001_Write", 3);
init_thunk(t, this_ptr_value, IVRIOBuffer_001_PropertyContainer, 1, FALSE, FALSE);
PropertyContainerHandle_t (__stdcall *capi_IVRIOBuffer_001_PropertyContainer)(IOBufferHandle_t ulBuffer) = (void *)t;
clear_parameters();
capi_IVRIOBuffer_001_PropertyContainer(1);
check_ptr_parameter("IVRIOBuffer_001_PropertyContainer", this_ptr_value);
check_uint64_parameter("IVRIOBuffer_001_PropertyContainer", 1);
VirtualFree(t, 0, MEM_RELEASE);
}
void test_capi_thunks_IVRChaperoneSetup_005(void)
{
struct thunk *t = alloc_thunks(1);
+2 -1
View File
@@ -20,8 +20,9 @@ int main(void)
test_capi_thunks_IVRResources_001();
test_capi_thunks_IVRDriverManager_001();
test_capi_thunks_IVRInput_005();
test_capi_thunks_IVRIOBuffer_001();
test_capi_thunks_IVRIOBuffer_002();
test_capi_thunks_IVRClientCore_003();
test_capi_thunks_IVRIOBuffer_001();
test_capi_thunks_IVRChaperoneSetup_005();
test_capi_thunks_IVROverlay_018();
test_capi_thunks_IVRTrackedCamera_004();
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -0,0 +1,44 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRIOBuffer_IVRIOBuffer_002.h"
#ifdef __cplusplus
extern "C" {
#endif
vr::EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Open(void *linux_side, const char * pchPath, EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, IOBufferHandle_t * pulBuffer)
{
return ((IVRIOBuffer*)linux_side)->Open((const char *)pchPath, (vr::EIOBufferMode)mode, (uint32_t)unElementSize, (uint32_t)unElements, (vr::IOBufferHandle_t *)pulBuffer);
}
vr::EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Close(void *linux_side, IOBufferHandle_t ulBuffer)
{
return ((IVRIOBuffer*)linux_side)->Close((vr::IOBufferHandle_t)ulBuffer);
}
vr::EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Read(void *linux_side, IOBufferHandle_t ulBuffer, void * pDst, uint32_t unBytes, uint32_t * punRead)
{
return ((IVRIOBuffer*)linux_side)->Read((vr::IOBufferHandle_t)ulBuffer, (void *)pDst, (uint32_t)unBytes, (uint32_t *)punRead);
}
vr::EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Write(void *linux_side, IOBufferHandle_t ulBuffer, void * pSrc, uint32_t unBytes)
{
return ((IVRIOBuffer*)linux_side)->Write((vr::IOBufferHandle_t)ulBuffer, (void *)pSrc, (uint32_t)unBytes);
}
vr::PropertyContainerHandle_t cppIVRIOBuffer_IVRIOBuffer_002_PropertyContainer(void *linux_side, IOBufferHandle_t ulBuffer)
{
return ((IVRIOBuffer*)linux_side)->PropertyContainer((vr::IOBufferHandle_t)ulBuffer);
}
bool cppIVRIOBuffer_IVRIOBuffer_002_HasReaders(void *linux_side, IOBufferHandle_t ulBuffer)
{
return ((IVRIOBuffer*)linux_side)->HasReaders((vr::IOBufferHandle_t)ulBuffer);
}
#ifdef __cplusplus
}
#endif
@@ -0,0 +1,12 @@
#ifdef __cplusplus
extern "C" {
#endif
extern EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Open(void *, const char *, EIOBufferMode, uint32_t, uint32_t, IOBufferHandle_t *);
extern EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Close(void *, IOBufferHandle_t);
extern EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Read(void *, IOBufferHandle_t, void *, uint32_t, uint32_t *);
extern EIOBufferError cppIVRIOBuffer_IVRIOBuffer_002_Write(void *, IOBufferHandle_t, void *, uint32_t);
extern PropertyContainerHandle_t cppIVRIOBuffer_IVRIOBuffer_002_PropertyContainer(void *, IOBufferHandle_t);
extern bool cppIVRIOBuffer_IVRIOBuffer_002_HasReaders(void *, IOBufferHandle_t);
#ifdef __cplusplus
}
#endif
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -1,6 +1,6 @@
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.1.3b/ivrclientcore.h"
#include "openvr_v1.2.10/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
@@ -234,12 +234,12 @@ vr::EVROverlayError cppIVROverlay_IVROverlay_019_GetTransformForOverlayCoordinat
return ((IVROverlay*)linux_side)->GetTransformForOverlayCoordinates((vr::VROverlayHandle_t)ulOverlayHandle, (vr::ETrackingUniverseOrigin)eTrackingOrigin, (vr::HmdVector2_t)coordinatesInOverlay, (vr::HmdMatrix34_t *)pmatTransform);
}
bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, winVREvent_t_113b * pEvent, uint32_t uncbVREvent)
bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, winVREvent_t_1210 * pEvent, uint32_t uncbVREvent)
{
VREvent_t lin;
bool _ret;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, &lin, sizeof(lin));
struct_VREvent_t_113b_lin_to_win(&lin, pEvent);
struct_VREvent_t_1210_lin_to_win(&lin, pEvent);
return _ret;
}
@@ -46,7 +46,7 @@ extern EVROverlayError cppIVROverlay_IVROverlay_019_ShowOverlay(void *, VROverla
extern EVROverlayError cppIVROverlay_IVROverlay_019_HideOverlay(void *, VROverlayHandle_t);
extern bool cppIVROverlay_IVROverlay_019_IsOverlayVisible(void *, VROverlayHandle_t);
extern EVROverlayError cppIVROverlay_IVROverlay_019_GetTransformForOverlayCoordinates(void *, VROverlayHandle_t, ETrackingUniverseOrigin, HmdVector2_t, HmdMatrix34_t *);
extern bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *, VROverlayHandle_t, winVREvent_t_113b *, uint32_t);
extern bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *, VROverlayHandle_t, winVREvent_t_1210 *, uint32_t);
extern EVROverlayError cppIVROverlay_IVROverlay_019_GetOverlayInputMethod(void *, VROverlayHandle_t, VROverlayInputMethod *);
extern EVROverlayError cppIVROverlay_IVROverlay_019_SetOverlayInputMethod(void *, VROverlayHandle_t, VROverlayInputMethod);
extern EVROverlayError cppIVROverlay_IVROverlay_019_GetOverlayMouseScale(void *, VROverlayHandle_t, HmdVector2_t *);

Some files were not shown because too many files have changed in this diff Show More