mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
parent
3defc39189
commit
c31c7b7144
@ -139,60 +139,5 @@ SOURCES = \
|
||||
vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_006.cpp \
|
||||
vrclient_x64/json_converter.cpp \
|
||||
vrclient_x64/jsoncpp.cpp \
|
||||
vrclient_x64/struct_converters_090.cpp \
|
||||
vrclient_x64/struct_converters_091.cpp \
|
||||
vrclient_x64/struct_converters_0910.cpp \
|
||||
vrclient_x64/struct_converters_0912.cpp \
|
||||
vrclient_x64/struct_converters_0913.cpp \
|
||||
vrclient_x64/struct_converters_0914.cpp \
|
||||
vrclient_x64/struct_converters_0915.cpp \
|
||||
vrclient_x64/struct_converters_0916.cpp \
|
||||
vrclient_x64/struct_converters_0917.cpp \
|
||||
vrclient_x64/struct_converters_0918.cpp \
|
||||
vrclient_x64/struct_converters_0919.cpp \
|
||||
vrclient_x64/struct_converters_092.cpp \
|
||||
vrclient_x64/struct_converters_0920.cpp \
|
||||
vrclient_x64/struct_converters_093.cpp \
|
||||
vrclient_x64/struct_converters_094.cpp \
|
||||
vrclient_x64/struct_converters_096.cpp \
|
||||
vrclient_x64/struct_converters_097.cpp \
|
||||
vrclient_x64/struct_converters_098.cpp \
|
||||
vrclient_x64/struct_converters_099.cpp \
|
||||
vrclient_x64/struct_converters_100.cpp \
|
||||
vrclient_x64/struct_converters_101.cpp \
|
||||
vrclient_x64/struct_converters_1010.cpp \
|
||||
vrclient_x64/struct_converters_1011.cpp \
|
||||
vrclient_x64/struct_converters_1012.cpp \
|
||||
vrclient_x64/struct_converters_1013.cpp \
|
||||
vrclient_x64/struct_converters_1014.cpp \
|
||||
vrclient_x64/struct_converters_1015.cpp \
|
||||
vrclient_x64/struct_converters_1016.cpp \
|
||||
vrclient_x64/struct_converters_1017.cpp \
|
||||
vrclient_x64/struct_converters_102.cpp \
|
||||
vrclient_x64/struct_converters_103.cpp \
|
||||
vrclient_x64/struct_converters_103a.cpp \
|
||||
vrclient_x64/struct_converters_104.cpp \
|
||||
vrclient_x64/struct_converters_105.cpp \
|
||||
vrclient_x64/struct_converters_106.cpp \
|
||||
vrclient_x64/struct_converters_107.cpp \
|
||||
vrclient_x64/struct_converters_108.cpp \
|
||||
vrclient_x64/struct_converters_109.cpp \
|
||||
vrclient_x64/struct_converters_11030.cpp \
|
||||
vrclient_x64/struct_converters_11111.cpp \
|
||||
vrclient_x64/struct_converters_1125.cpp \
|
||||
vrclient_x64/struct_converters_11310.cpp \
|
||||
vrclient_x64/struct_converters_113b.cpp \
|
||||
vrclient_x64/struct_converters_11415.cpp \
|
||||
vrclient_x64/struct_converters_1168.cpp \
|
||||
vrclient_x64/struct_converters_1210.cpp \
|
||||
vrclient_x64/struct_converters_1237.cpp \
|
||||
vrclient_x64/struct_converters_1267.cpp \
|
||||
vrclient_x64/struct_converters_1322.cpp \
|
||||
vrclient_x64/struct_converters_1418.cpp \
|
||||
vrclient_x64/struct_converters_1517.cpp \
|
||||
vrclient_x64/struct_converters_1610.cpp \
|
||||
vrclient_x64/struct_converters_1715.cpp \
|
||||
vrclient_x64/struct_converters_1819.cpp \
|
||||
vrclient_x64/struct_converters_1916.cpp \
|
||||
vrclient_x64/unix_vrrendermodels_manual.cpp \
|
||||
vrclient_x64/unixlib_generated.cpp \
|
||||
|
@ -1075,141 +1075,6 @@ def get_field_attribute_str(field):
|
||||
return " __attribute__((aligned(8)))"
|
||||
return f" __attribute__((aligned({abis['w32'].align})))"
|
||||
|
||||
generated_struct_handlers = []
|
||||
cpp_files_need_close_brace = []
|
||||
|
||||
LIN_TO_WIN=1
|
||||
WIN_TO_LIN=2
|
||||
WRAPPERS=3
|
||||
|
||||
#because of struct packing differences between win32 and linux, we
|
||||
#need to convert these structs from their linux layout to the win32
|
||||
#layout.
|
||||
def handle_struct(sdkver, struct):
|
||||
handler_name = "%s_%s" % (struct.name, display_sdkver(sdkver))
|
||||
|
||||
if handler_name in generated_struct_handlers:
|
||||
# we already have a handler for the struct struct of this size
|
||||
return
|
||||
|
||||
which = set()
|
||||
|
||||
if struct_needs_conversion(struct.type.get_canonical()):
|
||||
which.add(LIN_TO_WIN)
|
||||
which.add(WIN_TO_LIN)
|
||||
|
||||
if len(which) == 0:
|
||||
return
|
||||
|
||||
filename_base = "struct_converters_%s" % display_sdkver(sdkver)
|
||||
cppname = "vrclient_x64/%s.cpp" % filename_base
|
||||
file_exists = os.path.isfile(cppname)
|
||||
cppfile = open(cppname, "a")
|
||||
if not file_exists:
|
||||
cppfile.write("#include <stdlib.h>\n");
|
||||
cppfile.write("#include <string.h>\n");
|
||||
cppfile.write("#include \"vrclient_private.h\"\n")
|
||||
cppfile.write("#include \"vrclient_defs.h\"\n")
|
||||
cppfile.write("#include \"openvr_%s/openvr.h\"\n" % sdkver)
|
||||
cppfile.write("using namespace vr;\n")
|
||||
cppfile.write("extern \"C\" {\n")
|
||||
cppfile.write("#include \"struct_converters.h\"\n")
|
||||
cpp_files_need_close_brace.append(cppname)
|
||||
|
||||
hfile = open("vrclient_x64/struct_converters.h", "a")
|
||||
|
||||
hfile.write("typedef struct win%s win%s;\n" % (handler_name, handler_name))
|
||||
|
||||
cppfile.write("#pragma pack(push, 8)\n")
|
||||
cppfile.write("struct win%s {\n" % handler_name)
|
||||
for m in struct.get_children():
|
||||
if m.kind == CursorKind.FIELD_DECL:
|
||||
if m.type.get_canonical().kind == TypeKind.CONSTANTARRAY:
|
||||
cppfile.write(" %s %s[%u]" % (m.type.element_type.spelling, m.displayname, m.type.element_count))
|
||||
elif m.type.get_canonical().kind == TypeKind.RECORD and \
|
||||
struct_needs_conversion(m.type.get_canonical()):
|
||||
cppfile.write(" win%s_%s %s" % (strip_ns(m.type.spelling), display_sdkver(sdkver), m.displayname))
|
||||
else:
|
||||
if m.type.get_canonical().kind == TypeKind.POINTER and \
|
||||
m.type.get_pointee().kind == TypeKind.FUNCTIONPROTO:
|
||||
cppfile.write(" void *%s /*fn pointer*/ " % m.displayname)
|
||||
else:
|
||||
cppfile.write(" %s %s" % (m.type.spelling, m.displayname))
|
||||
cppfile.write(get_field_attribute_str(m) + ";\n")
|
||||
if WRAPPERS in which:
|
||||
cppfile.write("\n %s *linux_side;\n" % struct.name)
|
||||
cppfile.write("} __attribute__ ((ms_struct));\n")
|
||||
cppfile.write("#pragma pack(pop)\n\n")
|
||||
|
||||
def dump_converter(src, dst, size):
|
||||
for m in struct.get_children():
|
||||
if m.kind == CursorKind.FIELD_DECL:
|
||||
if m.type.get_canonical().kind == TypeKind.CONSTANTARRAY:
|
||||
#TODO: if this is a struct, or packed differently, we'll have to
|
||||
# copy each element in a for-loop
|
||||
cppfile.write(" memcpy(" + dst + "->" + m.displayname + ", " + src + "->" + m.displayname + ", sizeof(" + dst + "->" + m.displayname + "));\n")
|
||||
elif m.type.get_canonical().kind == TypeKind.RECORD and \
|
||||
struct_needs_conversion(m.type.get_canonical()):
|
||||
cppfile.write(" struct_" + strip_ns(m.type.spelling) + "_" + display_sdkver(sdkver) + "_" + src + "_to_" + dst + \
|
||||
"(&" + src + "->" + m.displayname + ", &" + dst + "->" + m.displayname + ");\n")
|
||||
elif struct.name in STRUCTS_SIZE_FIELD and \
|
||||
m.displayname in STRUCTS_SIZE_FIELD[struct.name]:
|
||||
cppfile.write(" " + dst + "->" + m.displayname + " = sizeof(*" + dst + ");\n")
|
||||
elif size and strip_ns(m.type.get_canonical().spelling) == "VREvent_Data_t":
|
||||
#truncate variable-length data struct at the end of the parent struct
|
||||
#XXX: dumb hard-coding. are the other types with lengths variable length?
|
||||
cppfile.write(" memcpy(&" + dst + "->data, &" + src + "->data, " + size + " - (((char*)&" + dst + "->data) - ((char*)" + dst + ")));\n")
|
||||
else:
|
||||
cppfile.write(" " + dst + "->" + m.displayname + " = " + src + "->" + m.displayname + ";\n")
|
||||
|
||||
if strip_ns(struct.name) in STRUCTS_NEXT_IS_SIZE:
|
||||
size_arg = "sz"
|
||||
size_arg_type = ", uint32_t sz"
|
||||
else:
|
||||
size_arg = None
|
||||
size_arg_type = ""
|
||||
|
||||
if LIN_TO_WIN in which:
|
||||
hfile.write("extern void struct_%s_lin_to_win(void *l, void *w%s);\n" % (handler_name, size_arg_type))
|
||||
cppfile.write("void struct_%s_lin_to_win(void *l, void *w%s)\n{\n" % (handler_name, size_arg_type))
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)w;\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.name, struct.name))
|
||||
dump_converter("lin", "win", size_arg)
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
if WIN_TO_LIN in which:
|
||||
#XXX: should pass size param here, too
|
||||
hfile.write("extern void struct_%s_win_to_lin(const void *w, void *l);\n" % handler_name)
|
||||
cppfile.write("void struct_%s_win_to_lin(const void *w, void *l)\n{\n" % handler_name)
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)w;\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.name, struct.name))
|
||||
dump_converter("win", "lin", None)
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
if WRAPPERS in which:
|
||||
hfile.write("extern struct win%s *struct_%s_wrap(void *l);\n" % (handler_name, handler_name))
|
||||
|
||||
cppfile.write("struct win%s *struct_%s_wrap(void *l)\n{\n" % (handler_name, handler_name))
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)malloc(sizeof(*win));\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.name, struct.name))
|
||||
|
||||
dump_converter("lin", "win", None)
|
||||
|
||||
cppfile.write(" win->linux_side = lin;\n");
|
||||
cppfile.write(" return win;\n")
|
||||
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
hfile.write("extern %s *struct_%s_unwrap(win%s *w);\n" % (struct.name, handler_name, handler_name))
|
||||
|
||||
cppfile.write("struct %s *struct_%s_unwrap(win%s *w)\n{\n" % (struct.name, handler_name, handler_name))
|
||||
cppfile.write(" %s *ret = w->linux_side;\n" % struct.name)
|
||||
cppfile.write(" free(w);\n")
|
||||
cppfile.write(" return ret;\n")
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
generated_struct_handlers.append(handler_name)
|
||||
|
||||
|
||||
def generate_x64_call_flat_method(cfile, param_count, has_floats, is_4th_float):
|
||||
assert param_count >= 4
|
||||
@ -1600,12 +1465,6 @@ def classify_struct(name):
|
||||
return versions
|
||||
|
||||
|
||||
def generate(sdkver, structs):
|
||||
print(f'generating SDK version {sdkver}...')
|
||||
for child in structs['u32'].values():
|
||||
handle_struct(sdkver, child)
|
||||
|
||||
|
||||
for i, sdkver in enumerate(SDK_VERSIONS):
|
||||
print(f'loading SDKs... {i * 100 // len(SDK_VERSIONS)}%', end='\r')
|
||||
all_versions[sdkver], all_sources[sdkver] = load(sdkver)
|
||||
@ -1707,14 +1566,6 @@ for _, klass in sorted(all_classes.items()):
|
||||
handle_class(klass)
|
||||
|
||||
|
||||
for sdkver in SDK_VERSIONS:
|
||||
generate(sdkver, all_records[sdkver])
|
||||
|
||||
|
||||
for f in cpp_files_need_close_brace:
|
||||
m = open(f, "a")
|
||||
m.write("\n}\n")
|
||||
|
||||
with open("tests/main_autogen.c", "a") as f:
|
||||
f.write(" printf(\"All tests executed.\\n\");\n")
|
||||
f.write("}\n")
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,164 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_0.9.0/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_090 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_090_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_090 *win = (struct winRenderModel_TextureMap_t_090 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_090_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_090 *win = (struct winRenderModel_TextureMap_t_090 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_090 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_090 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_090_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_090 *win = (struct winRenderModel_t_090 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_090_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_090_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_090 *win = (struct winRenderModel_t_090 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_090_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_090 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_090_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_090 *win = (struct winVREvent_t_090 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_090_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_090 *win = (struct winVREvent_t_090 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_090 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_090_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_090 *win = (struct winVRControllerState001_t_090 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_090_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_090 *win = (struct winVRControllerState001_t_090 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_090 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_090_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_090 *win = (struct winCompositor_FrameTiming_090 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_090_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_090 *win = (struct winCompositor_FrameTiming_090 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,164 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_0.9.1/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_091 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_091_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_091 *win = (struct winRenderModel_TextureMap_t_091 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_091_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_091 *win = (struct winRenderModel_TextureMap_t_091 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_091 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_091 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_091_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_091 *win = (struct winRenderModel_t_091 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_091_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_091_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_091 *win = (struct winRenderModel_t_091 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_091_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_091 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_091_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_091 *win = (struct winVREvent_t_091 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_091_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_091 *win = (struct winVREvent_t_091 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_091 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_091_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_091 *win = (struct winVRControllerState001_t_091 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_091_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_091 *win = (struct winVRControllerState001_t_091 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_091 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_091_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_091 *win = (struct winCompositor_FrameTiming_091 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_091_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_091 *win = (struct winCompositor_FrameTiming_091 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.10/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0910 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0910_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0910 *win = (struct winRenderModel_TextureMap_t_0910 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0910_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0910 *win = (struct winRenderModel_TextureMap_t_0910 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0910 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_0910 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0910_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0910 *win = (struct winRenderModel_t_0910 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_0910_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0910_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0910 *win = (struct winRenderModel_t_0910 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_0910_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0910 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0910_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0910 *win = (struct winVREvent_t_0910 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0910_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0910 *win = (struct winVREvent_t_0910 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0910 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0910_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0910 *win = (struct winVRControllerState001_t_0910 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0910_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0910 *win = (struct winVRControllerState001_t_0910 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_0910 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_0910_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0910 *win = (struct winCompositor_FrameTiming_0910 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_0910_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0910 *win = (struct winCompositor_FrameTiming_0910 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,250 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.12/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0912 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0912_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0912 *win = (struct winVREvent_t_0912 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0912 *win = (struct winVREvent_t_0912 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0912 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0912_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0912 *win = (struct winVRControllerState001_t_0912 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0912 *win = (struct winVRControllerState001_t_0912 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrame_t_0912 {
|
||||
vr::ECameraVideoStreamFormat m_nStreamFormat;
|
||||
uint32_t m_nWidth;
|
||||
uint32_t m_nHeight;
|
||||
uint32_t m_nFrameSequence;
|
||||
uint32_t m_nTimeStamp;
|
||||
uint32_t m_nBufferIndex;
|
||||
uint32_t m_nBufferCount;
|
||||
uint32_t m_nImageDataSize;
|
||||
double m_flFrameElapsedTime;
|
||||
double m_flFrameCaptureTime;
|
||||
bool m_bPoseIsValid;
|
||||
vr::HmdMatrix34_t m_matDeviceToAbsoluteTracking __attribute__((aligned(4)));
|
||||
float m_Pad[4];
|
||||
void * m_pImageData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0912_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0912 *win = (struct winCameraVideoStreamFrame_t_0912 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
win->m_nStreamFormat = lin->m_nStreamFormat;
|
||||
win->m_nWidth = lin->m_nWidth;
|
||||
win->m_nHeight = lin->m_nHeight;
|
||||
win->m_nFrameSequence = lin->m_nFrameSequence;
|
||||
win->m_nTimeStamp = lin->m_nTimeStamp;
|
||||
win->m_nBufferIndex = lin->m_nBufferIndex;
|
||||
win->m_nBufferCount = lin->m_nBufferCount;
|
||||
win->m_nImageDataSize = lin->m_nImageDataSize;
|
||||
win->m_flFrameElapsedTime = lin->m_flFrameElapsedTime;
|
||||
win->m_flFrameCaptureTime = lin->m_flFrameCaptureTime;
|
||||
win->m_bPoseIsValid = lin->m_bPoseIsValid;
|
||||
win->m_matDeviceToAbsoluteTracking = lin->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(win->m_Pad, lin->m_Pad, sizeof(win->m_Pad));
|
||||
win->m_pImageData = lin->m_pImageData;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0912 *win = (struct winCameraVideoStreamFrame_t_0912 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
lin->m_nStreamFormat = win->m_nStreamFormat;
|
||||
lin->m_nWidth = win->m_nWidth;
|
||||
lin->m_nHeight = win->m_nHeight;
|
||||
lin->m_nFrameSequence = win->m_nFrameSequence;
|
||||
lin->m_nTimeStamp = win->m_nTimeStamp;
|
||||
lin->m_nBufferIndex = win->m_nBufferIndex;
|
||||
lin->m_nBufferCount = win->m_nBufferCount;
|
||||
lin->m_nImageDataSize = win->m_nImageDataSize;
|
||||
lin->m_flFrameElapsedTime = win->m_flFrameElapsedTime;
|
||||
lin->m_flFrameCaptureTime = win->m_flFrameCaptureTime;
|
||||
lin->m_bPoseIsValid = win->m_bPoseIsValid;
|
||||
lin->m_matDeviceToAbsoluteTracking = win->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(lin->m_Pad, win->m_Pad, sizeof(lin->m_Pad));
|
||||
lin->m_pImageData = win->m_pImageData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_0912 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
float m_flHandoffStartMs;
|
||||
float m_flHandoffEndMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_0912_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0912 *win = (struct winCompositor_FrameTiming_0912 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
win->m_flHandoffStartMs = lin->m_flHandoffStartMs;
|
||||
win->m_flHandoffEndMs = lin->m_flHandoffEndMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0912 *win = (struct winCompositor_FrameTiming_0912 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
lin->m_flHandoffStartMs = win->m_flHandoffStartMs;
|
||||
lin->m_flHandoffEndMs = win->m_flHandoffEndMs;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0912 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0912_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0912 *win = (struct winRenderModel_TextureMap_t_0912 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0912 *win = (struct winRenderModel_TextureMap_t_0912 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0912 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0912_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0912 *win = (struct winRenderModel_t_0912 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0912_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0912 *win = (struct winRenderModel_t_0912 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,253 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.13/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0913 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0913_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0913 *win = (struct winVREvent_t_0913 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0913 *win = (struct winVREvent_t_0913 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0913 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0913_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0913 *win = (struct winVRControllerState001_t_0913 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0913 *win = (struct winVRControllerState001_t_0913 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrame_t_0913 {
|
||||
vr::ECameraVideoStreamFormat m_nStreamFormat;
|
||||
uint32_t m_nWidth;
|
||||
uint32_t m_nHeight;
|
||||
uint32_t m_nFrameSequence;
|
||||
uint32_t m_nTimeStamp;
|
||||
uint32_t m_nBufferIndex;
|
||||
uint32_t m_nBufferCount;
|
||||
uint32_t m_nImageDataSize;
|
||||
double m_flFrameElapsedTime;
|
||||
double m_flFrameCaptureTime;
|
||||
bool m_bPoseIsValid;
|
||||
vr::HmdMatrix34_t m_matDeviceToAbsoluteTracking __attribute__((aligned(4)));
|
||||
float m_Pad[4];
|
||||
void * m_pImageData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0913_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0913 *win = (struct winCameraVideoStreamFrame_t_0913 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
win->m_nStreamFormat = lin->m_nStreamFormat;
|
||||
win->m_nWidth = lin->m_nWidth;
|
||||
win->m_nHeight = lin->m_nHeight;
|
||||
win->m_nFrameSequence = lin->m_nFrameSequence;
|
||||
win->m_nTimeStamp = lin->m_nTimeStamp;
|
||||
win->m_nBufferIndex = lin->m_nBufferIndex;
|
||||
win->m_nBufferCount = lin->m_nBufferCount;
|
||||
win->m_nImageDataSize = lin->m_nImageDataSize;
|
||||
win->m_flFrameElapsedTime = lin->m_flFrameElapsedTime;
|
||||
win->m_flFrameCaptureTime = lin->m_flFrameCaptureTime;
|
||||
win->m_bPoseIsValid = lin->m_bPoseIsValid;
|
||||
win->m_matDeviceToAbsoluteTracking = lin->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(win->m_Pad, lin->m_Pad, sizeof(win->m_Pad));
|
||||
win->m_pImageData = lin->m_pImageData;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0913 *win = (struct winCameraVideoStreamFrame_t_0913 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
lin->m_nStreamFormat = win->m_nStreamFormat;
|
||||
lin->m_nWidth = win->m_nWidth;
|
||||
lin->m_nHeight = win->m_nHeight;
|
||||
lin->m_nFrameSequence = win->m_nFrameSequence;
|
||||
lin->m_nTimeStamp = win->m_nTimeStamp;
|
||||
lin->m_nBufferIndex = win->m_nBufferIndex;
|
||||
lin->m_nBufferCount = win->m_nBufferCount;
|
||||
lin->m_nImageDataSize = win->m_nImageDataSize;
|
||||
lin->m_flFrameElapsedTime = win->m_flFrameElapsedTime;
|
||||
lin->m_flFrameCaptureTime = win->m_flFrameCaptureTime;
|
||||
lin->m_bPoseIsValid = win->m_bPoseIsValid;
|
||||
lin->m_matDeviceToAbsoluteTracking = win->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(lin->m_Pad, win->m_Pad, sizeof(lin->m_Pad));
|
||||
lin->m_pImageData = win->m_pImageData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_0913 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
float m_flHandoffStartMs;
|
||||
float m_flHandoffEndMs;
|
||||
float m_flCompositorUpdateCpuMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_0913_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0913 *win = (struct winCompositor_FrameTiming_0913 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
win->m_flHandoffStartMs = lin->m_flHandoffStartMs;
|
||||
win->m_flHandoffEndMs = lin->m_flHandoffEndMs;
|
||||
win->m_flCompositorUpdateCpuMs = lin->m_flCompositorUpdateCpuMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0913 *win = (struct winCompositor_FrameTiming_0913 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
lin->m_flHandoffStartMs = win->m_flHandoffStartMs;
|
||||
lin->m_flHandoffEndMs = win->m_flHandoffEndMs;
|
||||
lin->m_flCompositorUpdateCpuMs = win->m_flCompositorUpdateCpuMs;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0913 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0913_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0913 *win = (struct winRenderModel_TextureMap_t_0913 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0913 *win = (struct winRenderModel_TextureMap_t_0913 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0913 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0913_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0913 *win = (struct winRenderModel_t_0913 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0913_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0913 *win = (struct winRenderModel_t_0913 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,268 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.14/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0914 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0914_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0914 *win = (struct winVREvent_t_0914 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0914 *win = (struct winVREvent_t_0914 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0914 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0914_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0914 *win = (struct winVRControllerState001_t_0914 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0914 *win = (struct winVRControllerState001_t_0914 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrame_t_0914 {
|
||||
vr::ECameraVideoStreamFormat m_nStreamFormat;
|
||||
uint32_t m_nWidth;
|
||||
uint32_t m_nHeight;
|
||||
uint32_t m_nImageDataSize;
|
||||
uint32_t m_nFrameSequence;
|
||||
uint32_t m_nISPFrameTimeStamp;
|
||||
uint32_t m_nISPReferenceTimeStamp;
|
||||
uint32_t m_nSyncCounter;
|
||||
uint32_t m_nExposureTime;
|
||||
uint32_t m_nBufferIndex;
|
||||
uint32_t m_nBufferCount;
|
||||
double m_flFrameElapsedTime;
|
||||
double m_flFrameCaptureTime;
|
||||
uint64_t m_nFrameCaptureTicks;
|
||||
bool m_bPoseIsValid;
|
||||
vr::HmdMatrix34_t m_matDeviceToAbsoluteTracking __attribute__((aligned(4)));
|
||||
float m_Pad[4];
|
||||
void * m_pImageData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0914_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0914 *win = (struct winCameraVideoStreamFrame_t_0914 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
win->m_nStreamFormat = lin->m_nStreamFormat;
|
||||
win->m_nWidth = lin->m_nWidth;
|
||||
win->m_nHeight = lin->m_nHeight;
|
||||
win->m_nImageDataSize = lin->m_nImageDataSize;
|
||||
win->m_nFrameSequence = lin->m_nFrameSequence;
|
||||
win->m_nISPFrameTimeStamp = lin->m_nISPFrameTimeStamp;
|
||||
win->m_nISPReferenceTimeStamp = lin->m_nISPReferenceTimeStamp;
|
||||
win->m_nSyncCounter = lin->m_nSyncCounter;
|
||||
win->m_nExposureTime = lin->m_nExposureTime;
|
||||
win->m_nBufferIndex = lin->m_nBufferIndex;
|
||||
win->m_nBufferCount = lin->m_nBufferCount;
|
||||
win->m_flFrameElapsedTime = lin->m_flFrameElapsedTime;
|
||||
win->m_flFrameCaptureTime = lin->m_flFrameCaptureTime;
|
||||
win->m_nFrameCaptureTicks = lin->m_nFrameCaptureTicks;
|
||||
win->m_bPoseIsValid = lin->m_bPoseIsValid;
|
||||
win->m_matDeviceToAbsoluteTracking = lin->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(win->m_Pad, lin->m_Pad, sizeof(win->m_Pad));
|
||||
win->m_pImageData = lin->m_pImageData;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrame_t_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrame_t_0914 *win = (struct winCameraVideoStreamFrame_t_0914 *)w;
|
||||
CameraVideoStreamFrame_t *lin = (CameraVideoStreamFrame_t *)l;
|
||||
lin->m_nStreamFormat = win->m_nStreamFormat;
|
||||
lin->m_nWidth = win->m_nWidth;
|
||||
lin->m_nHeight = win->m_nHeight;
|
||||
lin->m_nImageDataSize = win->m_nImageDataSize;
|
||||
lin->m_nFrameSequence = win->m_nFrameSequence;
|
||||
lin->m_nISPFrameTimeStamp = win->m_nISPFrameTimeStamp;
|
||||
lin->m_nISPReferenceTimeStamp = win->m_nISPReferenceTimeStamp;
|
||||
lin->m_nSyncCounter = win->m_nSyncCounter;
|
||||
lin->m_nExposureTime = win->m_nExposureTime;
|
||||
lin->m_nBufferIndex = win->m_nBufferIndex;
|
||||
lin->m_nBufferCount = win->m_nBufferCount;
|
||||
lin->m_flFrameElapsedTime = win->m_flFrameElapsedTime;
|
||||
lin->m_flFrameCaptureTime = win->m_flFrameCaptureTime;
|
||||
lin->m_nFrameCaptureTicks = win->m_nFrameCaptureTicks;
|
||||
lin->m_bPoseIsValid = win->m_bPoseIsValid;
|
||||
lin->m_matDeviceToAbsoluteTracking = win->m_matDeviceToAbsoluteTracking;
|
||||
memcpy(lin->m_Pad, win->m_Pad, sizeof(lin->m_Pad));
|
||||
lin->m_pImageData = win->m_pImageData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_0914 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
float m_flHandoffStartMs;
|
||||
float m_flHandoffEndMs;
|
||||
float m_flCompositorUpdateCpuMs;
|
||||
uint32_t m_nPresents;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_0914_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0914 *win = (struct winCompositor_FrameTiming_0914 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
win->m_flHandoffStartMs = lin->m_flHandoffStartMs;
|
||||
win->m_flHandoffEndMs = lin->m_flHandoffEndMs;
|
||||
win->m_flCompositorUpdateCpuMs = lin->m_flCompositorUpdateCpuMs;
|
||||
win->m_nPresents = lin->m_nPresents;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_0914 *win = (struct winCompositor_FrameTiming_0914 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
lin->m_flHandoffStartMs = win->m_flHandoffStartMs;
|
||||
lin->m_flHandoffEndMs = win->m_flHandoffEndMs;
|
||||
lin->m_flCompositorUpdateCpuMs = win->m_flCompositorUpdateCpuMs;
|
||||
lin->m_nPresents = win->m_nPresents;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0914 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0914_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0914 *win = (struct winRenderModel_TextureMap_t_0914 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0914 *win = (struct winRenderModel_TextureMap_t_0914 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0914 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0914_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0914 *win = (struct winRenderModel_t_0914 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0914_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0914 *win = (struct winRenderModel_t_0914 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.15/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0915 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0915_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0915 *win = (struct winVREvent_t_0915 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0915_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0915 *win = (struct winVREvent_t_0915 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0915 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0915_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0915 *win = (struct winVRControllerState001_t_0915 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0915_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0915 *win = (struct winVRControllerState001_t_0915 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0915 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0915_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0915 *win = (struct winRenderModel_TextureMap_t_0915 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0915_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0915 *win = (struct winRenderModel_TextureMap_t_0915 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0915 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0915_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0915 *win = (struct winRenderModel_t_0915 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0915_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0915 *win = (struct winRenderModel_t_0915 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.16/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0916 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0916 *win = (struct winVREvent_t_0916 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0916 *win = (struct winVREvent_t_0916 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0916 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0916 *win = (struct winVRControllerState001_t_0916 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0916 *win = (struct winVRControllerState001_t_0916 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0916 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0916 *win = (struct winRenderModel_TextureMap_t_0916 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0916 *win = (struct winRenderModel_TextureMap_t_0916 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0916 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0916 *win = (struct winRenderModel_t_0916 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0916 *win = (struct winRenderModel_t_0916 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.17/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0917 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0917_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0917 *win = (struct winVREvent_t_0917 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0917_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0917 *win = (struct winVREvent_t_0917 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0917 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0917_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0917 *win = (struct winVRControllerState001_t_0917 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0917_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0917 *win = (struct winVRControllerState001_t_0917 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0917 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0917_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0917 *win = (struct winRenderModel_TextureMap_t_0917 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0917_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0917 *win = (struct winRenderModel_TextureMap_t_0917 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0917 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0917_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0917 *win = (struct winRenderModel_t_0917 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0917_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0917 *win = (struct winRenderModel_t_0917 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.18/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0918 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0918_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0918 *win = (struct winVREvent_t_0918 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0918_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0918 *win = (struct winVREvent_t_0918 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0918 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0918_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0918 *win = (struct winVRControllerState001_t_0918 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0918_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0918 *win = (struct winVRControllerState001_t_0918 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0918 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0918_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0918 *win = (struct winRenderModel_TextureMap_t_0918 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0918_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0918 *win = (struct winRenderModel_TextureMap_t_0918 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0918 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0918_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0918 *win = (struct winRenderModel_t_0918 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0918_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0918 *win = (struct winRenderModel_t_0918 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.19/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0919 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0919_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0919 *win = (struct winVREvent_t_0919 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0919_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0919 *win = (struct winVREvent_t_0919 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0919 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0919_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0919 *win = (struct winVRControllerState001_t_0919 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0919_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0919 *win = (struct winVRControllerState001_t_0919 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0919 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0919_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0919 *win = (struct winRenderModel_TextureMap_t_0919 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0919_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0919 *win = (struct winRenderModel_TextureMap_t_0919 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0919 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0919_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0919 *win = (struct winRenderModel_t_0919 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0919_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0919 *win = (struct winRenderModel_t_0919 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,164 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_0.9.2/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_092 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_092_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_092 *win = (struct winRenderModel_TextureMap_t_092 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_092_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_092 *win = (struct winRenderModel_TextureMap_t_092 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_092 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_092 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_092_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_092 *win = (struct winRenderModel_t_092 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_092_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_092_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_092 *win = (struct winRenderModel_t_092 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_092_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_092 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_092_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_092 *win = (struct winVREvent_t_092 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_092_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_092 *win = (struct winVREvent_t_092 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_092 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_092_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_092 *win = (struct winVRControllerState001_t_092 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_092_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_092 *win = (struct winVRControllerState001_t_092 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_092 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_092_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_092 *win = (struct winCompositor_FrameTiming_092 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_092_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_092 *win = (struct winCompositor_FrameTiming_092 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.20/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_0920 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_0920_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_0920 *win = (struct winVREvent_t_0920 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_0920_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_0920 *win = (struct winVREvent_t_0920 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_0920 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_0920_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_0920 *win = (struct winVRControllerState001_t_0920 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_0920_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_0920 *win = (struct winVRControllerState001_t_0920 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_0920 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0920_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0920 *win = (struct winRenderModel_TextureMap_t_0920 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_0920_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_0920 *win = (struct winRenderModel_TextureMap_t_0920 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_0920 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_0920_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_0920 *win = (struct winRenderModel_t_0920 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_0920_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_0920 *win = (struct winRenderModel_t_0920 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_0.9.3/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_093 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_093_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_093 *win = (struct winRenderModel_TextureMap_t_093 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_093_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_093 *win = (struct winRenderModel_TextureMap_t_093 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_093 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_093 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_093_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_093 *win = (struct winRenderModel_t_093 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_093_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_093_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_093 *win = (struct winRenderModel_t_093 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_093_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_093 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_093_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_093 *win = (struct winVREvent_t_093 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_093_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_093 *win = (struct winVREvent_t_093 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_093 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_093_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_093 *win = (struct winVRControllerState001_t_093 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_093_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_093 *win = (struct winVRControllerState001_t_093 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_093 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_093_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_093 *win = (struct winCompositor_FrameTiming_093 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_093_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_093 *win = (struct winCompositor_FrameTiming_093 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.4/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_094 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_094_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_094 *win = (struct winRenderModel_TextureMap_t_094 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_094_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_094 *win = (struct winRenderModel_TextureMap_t_094 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_094 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_094 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_094_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_094 *win = (struct winRenderModel_t_094 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_094_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_094_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_094 *win = (struct winRenderModel_t_094 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_094_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_094 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_094_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_094 *win = (struct winVREvent_t_094 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_094_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_094 *win = (struct winVREvent_t_094 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_094 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_094_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_094 *win = (struct winVRControllerState001_t_094 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_094_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_094 *win = (struct winVRControllerState001_t_094 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_094 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_094_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_094 *win = (struct winCompositor_FrameTiming_094 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_094_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_094 *win = (struct winCompositor_FrameTiming_094 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.6/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_096 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_096_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_096 *win = (struct winRenderModel_TextureMap_t_096 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_096_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_096 *win = (struct winRenderModel_TextureMap_t_096 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_096 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_096 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_096_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_096 *win = (struct winRenderModel_t_096 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_096_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_096_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_096 *win = (struct winRenderModel_t_096 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_096_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_096 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_096_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_096 *win = (struct winVREvent_t_096 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_096_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_096 *win = (struct winVREvent_t_096 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_096 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_096_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_096 *win = (struct winVRControllerState001_t_096 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_096_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_096 *win = (struct winVRControllerState001_t_096 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_096 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_096_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_096 *win = (struct winCompositor_FrameTiming_096 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_096_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_096 *win = (struct winCompositor_FrameTiming_096 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.7/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_097 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_097_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_097 *win = (struct winRenderModel_TextureMap_t_097 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_097_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_097 *win = (struct winRenderModel_TextureMap_t_097 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_097 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_097 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_097_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_097 *win = (struct winRenderModel_t_097 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_097_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_097_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_097 *win = (struct winRenderModel_t_097 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_097_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_097 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_097_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_097 *win = (struct winVREvent_t_097 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_097_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_097 *win = (struct winVREvent_t_097 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_097 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_097_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_097 *win = (struct winVRControllerState001_t_097 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_097_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_097 *win = (struct winVRControllerState001_t_097 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_097 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_097_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_097 *win = (struct winCompositor_FrameTiming_097 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_097_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_097 *win = (struct winCompositor_FrameTiming_097 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.8/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_098 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_098_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_098 *win = (struct winRenderModel_TextureMap_t_098 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_098_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_098 *win = (struct winRenderModel_TextureMap_t_098 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_098 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_098 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_098_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_098 *win = (struct winRenderModel_t_098 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_098_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_098_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_098 *win = (struct winRenderModel_t_098 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_098_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_098 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_098_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_098 *win = (struct winVREvent_t_098 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_098_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_098 *win = (struct winVREvent_t_098 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_098 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_098_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_098 *win = (struct winVRControllerState001_t_098 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_098_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_098 *win = (struct winVRControllerState001_t_098 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_098 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_098_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_098 *win = (struct winCompositor_FrameTiming_098 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_098_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_098 *win = (struct winCompositor_FrameTiming_098 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.9/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_099 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_099_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_099 *win = (struct winRenderModel_TextureMap_t_099 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_099_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_099 *win = (struct winRenderModel_TextureMap_t_099 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_099 {
|
||||
uint64_t ulInternalHandle;
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
winRenderModel_TextureMap_t_099 diffuseTexture __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_099_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_099 *win = (struct winRenderModel_t_099 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->ulInternalHandle = lin->ulInternalHandle;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_099_lin_to_win(&lin->diffuseTexture, &win->diffuseTexture);
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_099_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_099 *win = (struct winRenderModel_t_099 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->ulInternalHandle = win->ulInternalHandle;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
struct_RenderModel_TextureMap_t_099_win_to_lin(&win->diffuseTexture, &lin->diffuseTexture);
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_099 {
|
||||
vr::EVREventType eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
float eventAgeSeconds;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_099_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_099 *win = (struct winVREvent_t_099 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
}
|
||||
|
||||
void struct_VREvent_t_099_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_099 *win = (struct winVREvent_t_099 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->data = win->data;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_099 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_099_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_099 *win = (struct winVRControllerState001_t_099 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_099_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_099 *win = (struct winVRControllerState001_t_099 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_099 {
|
||||
uint32_t size;
|
||||
double frameStart;
|
||||
float frameVSync;
|
||||
uint32_t droppedFrames;
|
||||
uint32_t frameIndex;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
float prediction;
|
||||
float m_flFrameIntervalMs;
|
||||
float m_flSceneRenderCpuMs;
|
||||
float m_flSceneRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flRunningStartMs;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_099_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_099 *win = (struct winCompositor_FrameTiming_099 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->size = sizeof(*win);
|
||||
win->frameStart = lin->frameStart;
|
||||
win->frameVSync = lin->frameVSync;
|
||||
win->droppedFrames = lin->droppedFrames;
|
||||
win->frameIndex = lin->frameIndex;
|
||||
win->pose = lin->pose;
|
||||
win->prediction = lin->prediction;
|
||||
win->m_flFrameIntervalMs = lin->m_flFrameIntervalMs;
|
||||
win->m_flSceneRenderCpuMs = lin->m_flSceneRenderCpuMs;
|
||||
win->m_flSceneRenderGpuMs = lin->m_flSceneRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flRunningStartMs = lin->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_099_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_099 *win = (struct winCompositor_FrameTiming_099 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->size = sizeof(*lin);
|
||||
lin->frameStart = win->frameStart;
|
||||
lin->frameVSync = win->frameVSync;
|
||||
lin->droppedFrames = win->droppedFrames;
|
||||
lin->frameIndex = win->frameIndex;
|
||||
lin->pose = win->pose;
|
||||
lin->prediction = win->prediction;
|
||||
lin->m_flFrameIntervalMs = win->m_flFrameIntervalMs;
|
||||
lin->m_flSceneRenderCpuMs = win->m_flSceneRenderCpuMs;
|
||||
lin->m_flSceneRenderGpuMs = win->m_flSceneRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flRunningStartMs = win->m_flRunningStartMs;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.0/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_100 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_100_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_100 *win = (struct winVREvent_t_100 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_100_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_100 *win = (struct winVREvent_t_100 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_100 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_100_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_100 *win = (struct winVRControllerState001_t_100 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_100_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_100 *win = (struct winVRControllerState001_t_100 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_100 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_100_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_100 *win = (struct winRenderModel_TextureMap_t_100 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_100_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_100 *win = (struct winRenderModel_TextureMap_t_100 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_100 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_100_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_100 *win = (struct winRenderModel_t_100 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_100_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_100 *win = (struct winRenderModel_t_100 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.1/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_101 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_101_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_101 *win = (struct winVREvent_t_101 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_101_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_101 *win = (struct winVREvent_t_101 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_101 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_101_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_101 *win = (struct winVRControllerState001_t_101 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_101_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_101 *win = (struct winVRControllerState001_t_101 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_101 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_101_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_101 *win = (struct winRenderModel_TextureMap_t_101 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_101_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_101 *win = (struct winRenderModel_TextureMap_t_101 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_101 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_101_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_101 *win = (struct winRenderModel_t_101 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_101_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_101 *win = (struct winRenderModel_t_101 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.10/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1010 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1010_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1010 *win = (struct winVREvent_t_1010 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1010_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1010 *win = (struct winVREvent_t_1010 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1010 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1010_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1010 *win = (struct winVRControllerState001_t_1010 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1010_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1010 *win = (struct winVRControllerState001_t_1010 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1010 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1010_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1010 *win = (struct winRenderModel_TextureMap_t_1010 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1010_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1010 *win = (struct winRenderModel_TextureMap_t_1010 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1010 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1010_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1010 *win = (struct winRenderModel_t_1010 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1010_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1010 *win = (struct winRenderModel_t_1010 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.11/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1011 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1011_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1011 *win = (struct winVREvent_t_1011 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1011_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1011 *win = (struct winVREvent_t_1011 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1011 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1011_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1011 *win = (struct winVRControllerState001_t_1011 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1011_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1011 *win = (struct winVRControllerState001_t_1011 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1011 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1011_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1011 *win = (struct winRenderModel_TextureMap_t_1011 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1011_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1011 *win = (struct winRenderModel_TextureMap_t_1011 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1011 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1011_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1011 *win = (struct winRenderModel_t_1011 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1011_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1011 *win = (struct winRenderModel_t_1011 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.12/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1012 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1012_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1012 *win = (struct winVREvent_t_1012 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1012_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1012 *win = (struct winVREvent_t_1012 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1012 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1012_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1012 *win = (struct winVRControllerState001_t_1012 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1012_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1012 *win = (struct winVRControllerState001_t_1012 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1012 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1012_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1012 *win = (struct winRenderModel_TextureMap_t_1012 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1012_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1012 *win = (struct winRenderModel_TextureMap_t_1012 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1012 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1012_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1012 *win = (struct winRenderModel_t_1012 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1012_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1012 *win = (struct winRenderModel_t_1012 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.13/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1013 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1013_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1013 *win = (struct winVREvent_t_1013 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1013_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1013 *win = (struct winVREvent_t_1013 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1013 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1013_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1013 *win = (struct winVRControllerState001_t_1013 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1013_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1013 *win = (struct winVRControllerState001_t_1013 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1013 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1013_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1013 *win = (struct winRenderModel_TextureMap_t_1013 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1013_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1013 *win = (struct winRenderModel_TextureMap_t_1013 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1013 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1013_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1013 *win = (struct winRenderModel_t_1013 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1013_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1013 *win = (struct winRenderModel_t_1013 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.14/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1014 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1014_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1014 *win = (struct winVREvent_t_1014 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1014_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1014 *win = (struct winVREvent_t_1014 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1014 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1014_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1014 *win = (struct winVRControllerState001_t_1014 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1014_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1014 *win = (struct winVRControllerState001_t_1014 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1014 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1014_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1014 *win = (struct winRenderModel_TextureMap_t_1014 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1014_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1014 *win = (struct winRenderModel_TextureMap_t_1014 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1014 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1014_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1014 *win = (struct winRenderModel_t_1014 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1014_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1014 *win = (struct winRenderModel_t_1014 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,277 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.15/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1015 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1015 *win = (struct winVREvent_t_1015 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1015 *win = (struct winVREvent_t_1015 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1015 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1015 *win = (struct winVRControllerState001_t_1015 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1015 *win = (struct winVRControllerState001_t_1015 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1015 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1015_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1015 *win = (struct winRenderModel_TextureMap_t_1015 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1015 *win = (struct winRenderModel_TextureMap_t_1015 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1015 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1015_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1015 *win = (struct winRenderModel_t_1015 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1015 *win = (struct winRenderModel_t_1015 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1015 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1015 *win = (struct winInputAnalogActionData_t_1015 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1015 *win = (struct winInputAnalogActionData_t_1015 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1015 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1015 *win = (struct winInputDigitalActionData_t_1015 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1015 *win = (struct winInputDigitalActionData_t_1015 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1015 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1015 *win = (struct winInputPoseActionData_t_1015 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1015 *win = (struct winInputPoseActionData_t_1015 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletonActionData_t_1015 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletonActionData_t_1015_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winInputSkeletonActionData_t_1015 *win = (struct winInputSkeletonActionData_t_1015 *)w;
|
||||
InputSkeletonActionData_t *lin = (InputSkeletonActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletonActionData_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletonActionData_t_1015 *win = (struct winInputSkeletonActionData_t_1015 *)w;
|
||||
InputSkeletonActionData_t *lin = (InputSkeletonActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1015 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1015_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1015 *win = (struct winInputOriginInfo_t_1015 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1015_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1015 *win = (struct winInputOriginInfo_t_1015 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,297 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.16/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1016 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1016 *win = (struct winVREvent_t_1016 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1016 *win = (struct winVREvent_t_1016 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1016 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1016 *win = (struct winVRControllerState001_t_1016 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1016 *win = (struct winVRControllerState001_t_1016 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1016 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1016_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1016 *win = (struct winRenderModel_TextureMap_t_1016 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1016 *win = (struct winRenderModel_TextureMap_t_1016 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1016 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1016_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1016 *win = (struct winRenderModel_t_1016 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1016 *win = (struct winRenderModel_t_1016 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1016 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1016 *win = (struct winInputAnalogActionData_t_1016 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1016 *win = (struct winInputAnalogActionData_t_1016 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1016 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1016 *win = (struct winInputDigitalActionData_t_1016 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1016 *win = (struct winInputDigitalActionData_t_1016 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1016 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1016 *win = (struct winInputPoseActionData_t_1016 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1016 *win = (struct winInputPoseActionData_t_1016 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1016 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
uint32_t boneCount;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1016 *win = (struct winInputSkeletalActionData_t_1016 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->boneCount = lin->boneCount;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1016 *win = (struct winInputSkeletalActionData_t_1016 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->boneCount = win->boneCount;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1016 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1016_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1016 *win = (struct winInputOriginInfo_t_1016 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1016 *win = (struct winInputOriginInfo_t_1016 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1016 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1016_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1016 *win = (struct winIVRSpatialAnchors_1016 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1016_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1016 *win = (struct winIVRSpatialAnchors_1016 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,335 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.17/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1017 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1017 *win = (struct winVREvent_t_1017 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1017 *win = (struct winVREvent_t_1017 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1017 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1017 *win = (struct winVRControllerState001_t_1017 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1017 *win = (struct winVRControllerState001_t_1017 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1017 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1017 *win = (struct winCameraVideoStreamFrameHeader_t_1017 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1017 *win = (struct winCameraVideoStreamFrameHeader_t_1017 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1017 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1017_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1017 *win = (struct winRenderModel_TextureMap_t_1017 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1017 *win = (struct winRenderModel_TextureMap_t_1017 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1017 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1017_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1017 *win = (struct winRenderModel_t_1017 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1017 *win = (struct winRenderModel_t_1017 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1017 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1017 *win = (struct winInputAnalogActionData_t_1017 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1017 *win = (struct winInputAnalogActionData_t_1017 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1017 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1017 *win = (struct winInputDigitalActionData_t_1017 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1017 *win = (struct winInputDigitalActionData_t_1017 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1017 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1017 *win = (struct winInputPoseActionData_t_1017 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1017 *win = (struct winInputPoseActionData_t_1017 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1017 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
uint32_t boneCount;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1017 *win = (struct winInputSkeletalActionData_t_1017 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->boneCount = lin->boneCount;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1017 *win = (struct winInputSkeletalActionData_t_1017 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->boneCount = win->boneCount;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1017 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1017_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1017 *win = (struct winInputOriginInfo_t_1017 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1017 *win = (struct winInputOriginInfo_t_1017 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1017 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1017_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1017 *win = (struct winIVRSpatialAnchors_1017 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1017_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1017 *win = (struct winIVRSpatialAnchors_1017 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.2/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_102 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_102_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_102 *win = (struct winVREvent_t_102 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_102_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_102 *win = (struct winVREvent_t_102 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_102 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_102_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_102 *win = (struct winVRControllerState001_t_102 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_102_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_102 *win = (struct winVRControllerState001_t_102 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_102 {
|
||||
uint32_t m_nSize;
|
||||
uint32_t m_nFrameIndex;
|
||||
uint32_t m_nNumFramePresents;
|
||||
uint32_t m_nNumDroppedFrames;
|
||||
uint32_t m_nReprojectionFlags;
|
||||
double m_flSystemTimeInSeconds;
|
||||
float m_flPreSubmitGpuMs;
|
||||
float m_flPostSubmitGpuMs;
|
||||
float m_flTotalRenderGpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorIdleCpuMs;
|
||||
float m_flClientFrameIntervalMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flWaitForPresentCpuMs;
|
||||
float m_flSubmitFrameMs;
|
||||
float m_flWaitGetPosesCalledMs;
|
||||
float m_flNewPosesReadyMs;
|
||||
float m_flNewFrameReadyMs;
|
||||
float m_flCompositorUpdateStartMs;
|
||||
float m_flCompositorUpdateEndMs;
|
||||
float m_flCompositorRenderStartMs;
|
||||
vr::TrackedDevicePose_t m_HmdPose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_102_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_102 *win = (struct winCompositor_FrameTiming_102 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->m_nSize = sizeof(*win);
|
||||
win->m_nFrameIndex = lin->m_nFrameIndex;
|
||||
win->m_nNumFramePresents = lin->m_nNumFramePresents;
|
||||
win->m_nNumDroppedFrames = lin->m_nNumDroppedFrames;
|
||||
win->m_nReprojectionFlags = lin->m_nReprojectionFlags;
|
||||
win->m_flSystemTimeInSeconds = lin->m_flSystemTimeInSeconds;
|
||||
win->m_flPreSubmitGpuMs = lin->m_flPreSubmitGpuMs;
|
||||
win->m_flPostSubmitGpuMs = lin->m_flPostSubmitGpuMs;
|
||||
win->m_flTotalRenderGpuMs = lin->m_flTotalRenderGpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorIdleCpuMs = lin->m_flCompositorIdleCpuMs;
|
||||
win->m_flClientFrameIntervalMs = lin->m_flClientFrameIntervalMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flWaitForPresentCpuMs = lin->m_flWaitForPresentCpuMs;
|
||||
win->m_flSubmitFrameMs = lin->m_flSubmitFrameMs;
|
||||
win->m_flWaitGetPosesCalledMs = lin->m_flWaitGetPosesCalledMs;
|
||||
win->m_flNewPosesReadyMs = lin->m_flNewPosesReadyMs;
|
||||
win->m_flNewFrameReadyMs = lin->m_flNewFrameReadyMs;
|
||||
win->m_flCompositorUpdateStartMs = lin->m_flCompositorUpdateStartMs;
|
||||
win->m_flCompositorUpdateEndMs = lin->m_flCompositorUpdateEndMs;
|
||||
win->m_flCompositorRenderStartMs = lin->m_flCompositorRenderStartMs;
|
||||
win->m_HmdPose = lin->m_HmdPose;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_102_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_102 *win = (struct winCompositor_FrameTiming_102 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->m_nSize = sizeof(*lin);
|
||||
lin->m_nFrameIndex = win->m_nFrameIndex;
|
||||
lin->m_nNumFramePresents = win->m_nNumFramePresents;
|
||||
lin->m_nNumDroppedFrames = win->m_nNumDroppedFrames;
|
||||
lin->m_nReprojectionFlags = win->m_nReprojectionFlags;
|
||||
lin->m_flSystemTimeInSeconds = win->m_flSystemTimeInSeconds;
|
||||
lin->m_flPreSubmitGpuMs = win->m_flPreSubmitGpuMs;
|
||||
lin->m_flPostSubmitGpuMs = win->m_flPostSubmitGpuMs;
|
||||
lin->m_flTotalRenderGpuMs = win->m_flTotalRenderGpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorIdleCpuMs = win->m_flCompositorIdleCpuMs;
|
||||
lin->m_flClientFrameIntervalMs = win->m_flClientFrameIntervalMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flWaitForPresentCpuMs = win->m_flWaitForPresentCpuMs;
|
||||
lin->m_flSubmitFrameMs = win->m_flSubmitFrameMs;
|
||||
lin->m_flWaitGetPosesCalledMs = win->m_flWaitGetPosesCalledMs;
|
||||
lin->m_flNewPosesReadyMs = win->m_flNewPosesReadyMs;
|
||||
lin->m_flNewFrameReadyMs = win->m_flNewFrameReadyMs;
|
||||
lin->m_flCompositorUpdateStartMs = win->m_flCompositorUpdateStartMs;
|
||||
lin->m_flCompositorUpdateEndMs = win->m_flCompositorUpdateEndMs;
|
||||
lin->m_flCompositorRenderStartMs = win->m_flCompositorRenderStartMs;
|
||||
lin->m_HmdPose = win->m_HmdPose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_102 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_102_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_102 *win = (struct winRenderModel_TextureMap_t_102 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_102_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_102 *win = (struct winRenderModel_TextureMap_t_102 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_102 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_102_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_102 *win = (struct winRenderModel_t_102 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_102_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_102 *win = (struct winRenderModel_t_102 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.3/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_103 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_103_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_103 *win = (struct winVREvent_t_103 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_103_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_103 *win = (struct winVREvent_t_103 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_103 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_103_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_103 *win = (struct winVRControllerState001_t_103 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_103_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_103 *win = (struct winVRControllerState001_t_103 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCompositor_FrameTiming_103 {
|
||||
uint32_t m_nSize;
|
||||
uint32_t m_nFrameIndex;
|
||||
uint32_t m_nNumFramePresents;
|
||||
uint32_t m_nNumDroppedFrames;
|
||||
uint32_t m_nReprojectionFlags;
|
||||
double m_flSystemTimeInSeconds;
|
||||
float m_flPreSubmitGpuMs;
|
||||
float m_flPostSubmitGpuMs;
|
||||
float m_flTotalRenderGpuMs;
|
||||
float m_flCompositorRenderGpuMs;
|
||||
float m_flCompositorRenderCpuMs;
|
||||
float m_flCompositorIdleCpuMs;
|
||||
float m_flClientFrameIntervalMs;
|
||||
float m_flPresentCallCpuMs;
|
||||
float m_flWaitForPresentCpuMs;
|
||||
float m_flSubmitFrameMs;
|
||||
float m_flWaitGetPosesCalledMs;
|
||||
float m_flNewPosesReadyMs;
|
||||
float m_flNewFrameReadyMs;
|
||||
float m_flCompositorUpdateStartMs;
|
||||
float m_flCompositorUpdateEndMs;
|
||||
float m_flCompositorRenderStartMs;
|
||||
vr::TrackedDevicePose_t m_HmdPose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_Compositor_FrameTiming_103_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winCompositor_FrameTiming_103 *win = (struct winCompositor_FrameTiming_103 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
win->m_nSize = sizeof(*win);
|
||||
win->m_nFrameIndex = lin->m_nFrameIndex;
|
||||
win->m_nNumFramePresents = lin->m_nNumFramePresents;
|
||||
win->m_nNumDroppedFrames = lin->m_nNumDroppedFrames;
|
||||
win->m_nReprojectionFlags = lin->m_nReprojectionFlags;
|
||||
win->m_flSystemTimeInSeconds = lin->m_flSystemTimeInSeconds;
|
||||
win->m_flPreSubmitGpuMs = lin->m_flPreSubmitGpuMs;
|
||||
win->m_flPostSubmitGpuMs = lin->m_flPostSubmitGpuMs;
|
||||
win->m_flTotalRenderGpuMs = lin->m_flTotalRenderGpuMs;
|
||||
win->m_flCompositorRenderGpuMs = lin->m_flCompositorRenderGpuMs;
|
||||
win->m_flCompositorRenderCpuMs = lin->m_flCompositorRenderCpuMs;
|
||||
win->m_flCompositorIdleCpuMs = lin->m_flCompositorIdleCpuMs;
|
||||
win->m_flClientFrameIntervalMs = lin->m_flClientFrameIntervalMs;
|
||||
win->m_flPresentCallCpuMs = lin->m_flPresentCallCpuMs;
|
||||
win->m_flWaitForPresentCpuMs = lin->m_flWaitForPresentCpuMs;
|
||||
win->m_flSubmitFrameMs = lin->m_flSubmitFrameMs;
|
||||
win->m_flWaitGetPosesCalledMs = lin->m_flWaitGetPosesCalledMs;
|
||||
win->m_flNewPosesReadyMs = lin->m_flNewPosesReadyMs;
|
||||
win->m_flNewFrameReadyMs = lin->m_flNewFrameReadyMs;
|
||||
win->m_flCompositorUpdateStartMs = lin->m_flCompositorUpdateStartMs;
|
||||
win->m_flCompositorUpdateEndMs = lin->m_flCompositorUpdateEndMs;
|
||||
win->m_flCompositorRenderStartMs = lin->m_flCompositorRenderStartMs;
|
||||
win->m_HmdPose = lin->m_HmdPose;
|
||||
}
|
||||
|
||||
void struct_Compositor_FrameTiming_103_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCompositor_FrameTiming_103 *win = (struct winCompositor_FrameTiming_103 *)w;
|
||||
Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l;
|
||||
lin->m_nSize = sizeof(*lin);
|
||||
lin->m_nFrameIndex = win->m_nFrameIndex;
|
||||
lin->m_nNumFramePresents = win->m_nNumFramePresents;
|
||||
lin->m_nNumDroppedFrames = win->m_nNumDroppedFrames;
|
||||
lin->m_nReprojectionFlags = win->m_nReprojectionFlags;
|
||||
lin->m_flSystemTimeInSeconds = win->m_flSystemTimeInSeconds;
|
||||
lin->m_flPreSubmitGpuMs = win->m_flPreSubmitGpuMs;
|
||||
lin->m_flPostSubmitGpuMs = win->m_flPostSubmitGpuMs;
|
||||
lin->m_flTotalRenderGpuMs = win->m_flTotalRenderGpuMs;
|
||||
lin->m_flCompositorRenderGpuMs = win->m_flCompositorRenderGpuMs;
|
||||
lin->m_flCompositorRenderCpuMs = win->m_flCompositorRenderCpuMs;
|
||||
lin->m_flCompositorIdleCpuMs = win->m_flCompositorIdleCpuMs;
|
||||
lin->m_flClientFrameIntervalMs = win->m_flClientFrameIntervalMs;
|
||||
lin->m_flPresentCallCpuMs = win->m_flPresentCallCpuMs;
|
||||
lin->m_flWaitForPresentCpuMs = win->m_flWaitForPresentCpuMs;
|
||||
lin->m_flSubmitFrameMs = win->m_flSubmitFrameMs;
|
||||
lin->m_flWaitGetPosesCalledMs = win->m_flWaitGetPosesCalledMs;
|
||||
lin->m_flNewPosesReadyMs = win->m_flNewPosesReadyMs;
|
||||
lin->m_flNewFrameReadyMs = win->m_flNewFrameReadyMs;
|
||||
lin->m_flCompositorUpdateStartMs = win->m_flCompositorUpdateStartMs;
|
||||
lin->m_flCompositorUpdateEndMs = win->m_flCompositorUpdateEndMs;
|
||||
lin->m_flCompositorRenderStartMs = win->m_flCompositorRenderStartMs;
|
||||
lin->m_HmdPose = win->m_HmdPose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_103 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_103_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_103 *win = (struct winRenderModel_TextureMap_t_103 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_103_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_103 *win = (struct winRenderModel_TextureMap_t_103 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_103 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_103_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_103 *win = (struct winRenderModel_t_103 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_103_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_103 *win = (struct winRenderModel_t_103 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.3a/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_103a {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_103a_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_103a *win = (struct winVREvent_t_103a *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_103a_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_103a *win = (struct winVREvent_t_103a *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_103a {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_103a_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_103a *win = (struct winVRControllerState001_t_103a *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_103a_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_103a *win = (struct winVRControllerState001_t_103a *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_103a {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_103a_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_103a *win = (struct winRenderModel_TextureMap_t_103a *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_103a_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_103a *win = (struct winRenderModel_TextureMap_t_103a *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_103a {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_103a_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_103a *win = (struct winRenderModel_t_103a *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_103a_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_103a *win = (struct winRenderModel_t_103a *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.4/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_104 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_104_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_104 *win = (struct winVREvent_t_104 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_104_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_104 *win = (struct winVREvent_t_104 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_104 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_104_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_104 *win = (struct winVRControllerState001_t_104 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_104_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_104 *win = (struct winVRControllerState001_t_104 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_104 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_104_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_104 *win = (struct winRenderModel_TextureMap_t_104 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_104_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_104 *win = (struct winRenderModel_TextureMap_t_104 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_104 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_104_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_104 *win = (struct winRenderModel_t_104 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_104_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_104 *win = (struct winRenderModel_t_104 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.5/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_105 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_105_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_105 *win = (struct winVREvent_t_105 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_105_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_105 *win = (struct winVREvent_t_105 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_105 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_105_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_105 *win = (struct winVRControllerState001_t_105 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_105_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_105 *win = (struct winVRControllerState001_t_105 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_105 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_105_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_105 *win = (struct winRenderModel_TextureMap_t_105 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_105_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_105 *win = (struct winRenderModel_TextureMap_t_105 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_105 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_105_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_105 *win = (struct winRenderModel_t_105 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_105_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_105 *win = (struct winRenderModel_t_105 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.6/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_106 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_106_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_106 *win = (struct winVREvent_t_106 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_106_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_106 *win = (struct winVREvent_t_106 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_106 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_106_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_106 *win = (struct winVRControllerState001_t_106 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_106_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_106 *win = (struct winVRControllerState001_t_106 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_106 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_106_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_106 *win = (struct winRenderModel_TextureMap_t_106 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_106_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_106 *win = (struct winRenderModel_TextureMap_t_106 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_106 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_106_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_106 *win = (struct winRenderModel_t_106 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_106_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_106 *win = (struct winRenderModel_t_106 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.7/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_107 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_107_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_107 *win = (struct winVREvent_t_107 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_107_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_107 *win = (struct winVREvent_t_107 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_107 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_107_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_107 *win = (struct winVRControllerState001_t_107 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_107_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_107 *win = (struct winVRControllerState001_t_107 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_107 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_107_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_107 *win = (struct winRenderModel_TextureMap_t_107 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_107_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_107 *win = (struct winRenderModel_TextureMap_t_107 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_107 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_107_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_107 *win = (struct winRenderModel_t_107 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_107_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_107 *win = (struct winRenderModel_t_107 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.8/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_108 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_108_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_108 *win = (struct winVREvent_t_108 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_108_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_108 *win = (struct winVREvent_t_108 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_108 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_108_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_108 *win = (struct winVRControllerState001_t_108 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_108_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_108 *win = (struct winVRControllerState001_t_108 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_108 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_108_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_108 *win = (struct winRenderModel_TextureMap_t_108 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_108_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_108 *win = (struct winRenderModel_TextureMap_t_108 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_108 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_108_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_108 *win = (struct winRenderModel_t_108 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_108_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_108 *win = (struct winRenderModel_t_108 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.0.9/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_109 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_109_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_109 *win = (struct winVREvent_t_109 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_109_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_109 *win = (struct winVREvent_t_109 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_109 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_109_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_109 *win = (struct winVRControllerState001_t_109 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_109_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_109 *win = (struct winVRControllerState001_t_109 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_109 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_109_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_109 *win = (struct winRenderModel_TextureMap_t_109 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_109_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_109 *win = (struct winRenderModel_TextureMap_t_109 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_109 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_109_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_109 *win = (struct winRenderModel_t_109 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_109_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_109 *win = (struct winRenderModel_t_109 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,375 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.10.30/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_11030 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_11030 *win = (struct winVREvent_t_11030 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_11030 *win = (struct winVREvent_t_11030 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_11030 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_11030 *win = (struct winVRControllerState001_t_11030 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_11030 *win = (struct winVRControllerState001_t_11030 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_11030 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11030 *win = (struct winCameraVideoStreamFrameHeader_t_11030 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11030 *win = (struct winCameraVideoStreamFrameHeader_t_11030 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_11030 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_11030_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_11030 *win = (struct winVROverlayView_t_11030 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_11030 *win = (struct winVROverlayView_t_11030 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_11030 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11030_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11030 *win = (struct winRenderModel_TextureMap_t_11030 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11030 *win = (struct winRenderModel_TextureMap_t_11030 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_11030 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_11030_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_11030 *win = (struct winRenderModel_t_11030 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_11030 *win = (struct winRenderModel_t_11030 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_11030 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11030 *win = (struct winInputAnalogActionData_t_11030 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11030 *win = (struct winInputAnalogActionData_t_11030 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_11030 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11030 *win = (struct winInputDigitalActionData_t_11030 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11030 *win = (struct winInputDigitalActionData_t_11030 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_11030 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_11030 *win = (struct winInputPoseActionData_t_11030 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_11030 *win = (struct winInputPoseActionData_t_11030 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_11030 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11030 *win = (struct winInputSkeletalActionData_t_11030 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11030 *win = (struct winInputSkeletalActionData_t_11030 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_11030 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_11030_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_11030 *win = (struct winInputOriginInfo_t_11030 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_11030 *win = (struct winInputOriginInfo_t_11030 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_11030 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_11030_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11030 *win = (struct winIVRSpatialAnchors_11030 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11030 *win = (struct winIVRSpatialAnchors_11030 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_11030 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_11030_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_11030 *win = (struct winIVRDebug_11030 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_11030_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_11030 *win = (struct winIVRDebug_11030 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,378 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.11.11/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_11111 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_11111 *win = (struct winVREvent_t_11111 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_11111 *win = (struct winVREvent_t_11111 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_11111 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_11111 *win = (struct winVRControllerState001_t_11111 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_11111 *win = (struct winVRControllerState001_t_11111 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_11111 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11111 *win = (struct winCameraVideoStreamFrameHeader_t_11111 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11111 *win = (struct winCameraVideoStreamFrameHeader_t_11111 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_11111 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_11111_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_11111 *win = (struct winVROverlayView_t_11111 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_11111 *win = (struct winVROverlayView_t_11111 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_11111 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11111_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11111 *win = (struct winRenderModel_TextureMap_t_11111 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11111 *win = (struct winRenderModel_TextureMap_t_11111 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_11111 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_11111_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_11111 *win = (struct winRenderModel_t_11111 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_11111 *win = (struct winRenderModel_t_11111 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_11111 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11111 *win = (struct winInputAnalogActionData_t_11111 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11111 *win = (struct winInputAnalogActionData_t_11111 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_11111 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11111 *win = (struct winInputDigitalActionData_t_11111 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11111 *win = (struct winInputDigitalActionData_t_11111 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_11111 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_11111 *win = (struct winInputPoseActionData_t_11111 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_11111 *win = (struct winInputPoseActionData_t_11111 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_11111 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11111 *win = (struct winInputSkeletalActionData_t_11111 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11111 *win = (struct winInputSkeletalActionData_t_11111 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_11111 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_11111_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_11111 *win = (struct winInputOriginInfo_t_11111 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_11111 *win = (struct winInputOriginInfo_t_11111 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_11111 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_11111_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11111 *win = (struct winIVRSpatialAnchors_11111 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11111 *win = (struct winIVRSpatialAnchors_11111 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_11111 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_11111_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_11111 *win = (struct winIVRDebug_11111 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_11111_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_11111 *win = (struct winIVRDebug_11111 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,401 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.12.5/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_1125 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1125 *win = (struct winVRVulkanTextureArrayData_t_1125 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1125 *win = (struct winVRVulkanTextureArrayData_t_1125 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1125 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1125 *win = (struct winVREvent_t_1125 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1125 *win = (struct winVREvent_t_1125 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1125 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1125 *win = (struct winVRControllerState001_t_1125 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1125 *win = (struct winVRControllerState001_t_1125 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1125 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1125 *win = (struct winCameraVideoStreamFrameHeader_t_1125 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1125 *win = (struct winCameraVideoStreamFrameHeader_t_1125 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_1125 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_1125 *win = (struct winVROverlayView_t_1125 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_1125 *win = (struct winVROverlayView_t_1125 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1125 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1125 *win = (struct winRenderModel_TextureMap_t_1125 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1125 *win = (struct winRenderModel_TextureMap_t_1125 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1125 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1125 *win = (struct winRenderModel_t_1125 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1125 *win = (struct winRenderModel_t_1125 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1125 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1125 *win = (struct winInputAnalogActionData_t_1125 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1125 *win = (struct winInputAnalogActionData_t_1125 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1125 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1125 *win = (struct winInputDigitalActionData_t_1125 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1125 *win = (struct winInputDigitalActionData_t_1125 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1125 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1125 *win = (struct winInputPoseActionData_t_1125 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1125 *win = (struct winInputPoseActionData_t_1125 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1125 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1125 *win = (struct winInputSkeletalActionData_t_1125 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1125 *win = (struct winInputSkeletalActionData_t_1125 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1125 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1125_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1125 *win = (struct winInputOriginInfo_t_1125 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1125 *win = (struct winInputOriginInfo_t_1125 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1125 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1125 *win = (struct winIVRSpatialAnchors_1125 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1125 *win = (struct winIVRSpatialAnchors_1125 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1125 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1125_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1125 *win = (struct winIVRDebug_1125 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1125_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1125 *win = (struct winIVRDebug_1125 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,401 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.13.10/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_11310 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_11310 *win = (struct winVRVulkanTextureArrayData_t_11310 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_11310 *win = (struct winVRVulkanTextureArrayData_t_11310 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_11310 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_11310 *win = (struct winVREvent_t_11310 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_11310 *win = (struct winVREvent_t_11310 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_11310 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_11310 *win = (struct winVRControllerState001_t_11310 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_11310 *win = (struct winVRControllerState001_t_11310 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_11310 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11310 *win = (struct winCameraVideoStreamFrameHeader_t_11310 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11310 *win = (struct winCameraVideoStreamFrameHeader_t_11310 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_11310 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_11310 *win = (struct winVROverlayView_t_11310 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_11310 *win = (struct winVROverlayView_t_11310 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_11310 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11310 *win = (struct winRenderModel_TextureMap_t_11310 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11310 *win = (struct winRenderModel_TextureMap_t_11310 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_11310 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_11310 *win = (struct winRenderModel_t_11310 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_11310 *win = (struct winRenderModel_t_11310 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_11310 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11310 *win = (struct winInputAnalogActionData_t_11310 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11310 *win = (struct winInputAnalogActionData_t_11310 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_11310 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11310 *win = (struct winInputDigitalActionData_t_11310 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11310 *win = (struct winInputDigitalActionData_t_11310 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_11310 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_11310 *win = (struct winInputPoseActionData_t_11310 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_11310 *win = (struct winInputPoseActionData_t_11310 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_11310 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11310 *win = (struct winInputSkeletalActionData_t_11310 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11310 *win = (struct winInputSkeletalActionData_t_11310 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_11310 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_11310_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_11310 *win = (struct winInputOriginInfo_t_11310 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_11310 *win = (struct winInputOriginInfo_t_11310 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_11310 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11310 *win = (struct winIVRSpatialAnchors_11310 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11310 *win = (struct winIVRSpatialAnchors_11310 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_11310 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_11310_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_11310 *win = (struct winIVRDebug_11310 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_11310_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_11310 *win = (struct winIVRDebug_11310 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,332 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.1.3b/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_113b {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_113b *win = (struct winVREvent_t_113b *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_113b *win = (struct winVREvent_t_113b *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_113b {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_113b *win = (struct winVRControllerState001_t_113b *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_113b *win = (struct winVRControllerState001_t_113b *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_113b {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_113b *win = (struct winCameraVideoStreamFrameHeader_t_113b *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_113b *win = (struct winCameraVideoStreamFrameHeader_t_113b *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_113b {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_113b_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_113b *win = (struct winRenderModel_TextureMap_t_113b *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_113b *win = (struct winRenderModel_TextureMap_t_113b *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_113b {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_113b_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_113b *win = (struct winRenderModel_t_113b *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_113b *win = (struct winRenderModel_t_113b *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_113b {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_113b *win = (struct winInputAnalogActionData_t_113b *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_113b *win = (struct winInputAnalogActionData_t_113b *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_113b {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_113b *win = (struct winInputDigitalActionData_t_113b *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_113b *win = (struct winInputDigitalActionData_t_113b *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_113b {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_113b *win = (struct winInputPoseActionData_t_113b *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_113b *win = (struct winInputPoseActionData_t_113b *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_113b {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_113b *win = (struct winInputSkeletalActionData_t_113b *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_113b *win = (struct winInputSkeletalActionData_t_113b *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_113b {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_113b_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_113b *win = (struct winInputOriginInfo_t_113b *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_113b *win = (struct winInputOriginInfo_t_113b *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_113b {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_113b_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_113b *win = (struct winIVRSpatialAnchors_113b *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_113b_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_113b *win = (struct winIVRSpatialAnchors_113b *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,401 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.14.15/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_11415 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_11415 *win = (struct winVRVulkanTextureArrayData_t_11415 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_11415 *win = (struct winVRVulkanTextureArrayData_t_11415 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_11415 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_11415 *win = (struct winVREvent_t_11415 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_11415 *win = (struct winVREvent_t_11415 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_11415 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_11415 *win = (struct winVRControllerState001_t_11415 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_11415 *win = (struct winVRControllerState001_t_11415 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_11415 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11415 *win = (struct winCameraVideoStreamFrameHeader_t_11415 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_11415 *win = (struct winCameraVideoStreamFrameHeader_t_11415 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_11415 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_11415 *win = (struct winVROverlayView_t_11415 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_11415 *win = (struct winVROverlayView_t_11415 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_11415 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11415 *win = (struct winRenderModel_TextureMap_t_11415 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_11415 *win = (struct winRenderModel_TextureMap_t_11415 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_11415 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_11415 *win = (struct winRenderModel_t_11415 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_11415 *win = (struct winRenderModel_t_11415 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_11415 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11415 *win = (struct winInputAnalogActionData_t_11415 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_11415 *win = (struct winInputAnalogActionData_t_11415 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_11415 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11415 *win = (struct winInputDigitalActionData_t_11415 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_11415 *win = (struct winInputDigitalActionData_t_11415 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_11415 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_11415 *win = (struct winInputPoseActionData_t_11415 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_11415 *win = (struct winInputPoseActionData_t_11415 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_11415 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11415 *win = (struct winInputSkeletalActionData_t_11415 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_11415 *win = (struct winInputSkeletalActionData_t_11415 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_11415 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_11415_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_11415 *win = (struct winInputOriginInfo_t_11415 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_11415 *win = (struct winInputOriginInfo_t_11415 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_11415 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11415 *win = (struct winIVRSpatialAnchors_11415 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_11415 *win = (struct winIVRSpatialAnchors_11415 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_11415 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_11415_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_11415 *win = (struct winIVRDebug_11415 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_11415_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_11415 *win = (struct winIVRDebug_11415 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,401 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.16.8/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_1168 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1168 *win = (struct winVRVulkanTextureArrayData_t_1168 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1168 *win = (struct winVRVulkanTextureArrayData_t_1168 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1168 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1168 *win = (struct winVREvent_t_1168 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1168 *win = (struct winVREvent_t_1168 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1168 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1168 *win = (struct winVRControllerState001_t_1168 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1168 *win = (struct winVRControllerState001_t_1168 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1168 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1168 *win = (struct winCameraVideoStreamFrameHeader_t_1168 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1168 *win = (struct winCameraVideoStreamFrameHeader_t_1168 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_1168 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_1168 *win = (struct winVROverlayView_t_1168 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_1168 *win = (struct winVROverlayView_t_1168 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1168 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1168 *win = (struct winRenderModel_TextureMap_t_1168 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1168 *win = (struct winRenderModel_TextureMap_t_1168 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1168 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1168 *win = (struct winRenderModel_t_1168 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1168 *win = (struct winRenderModel_t_1168 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1168 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1168 *win = (struct winInputAnalogActionData_t_1168 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1168 *win = (struct winInputAnalogActionData_t_1168 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1168 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1168 *win = (struct winInputDigitalActionData_t_1168 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1168 *win = (struct winInputDigitalActionData_t_1168 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1168 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1168 *win = (struct winInputPoseActionData_t_1168 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1168 *win = (struct winInputPoseActionData_t_1168 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1168 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1168 *win = (struct winInputSkeletalActionData_t_1168 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1168 *win = (struct winInputSkeletalActionData_t_1168 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1168 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1168_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1168 *win = (struct winInputOriginInfo_t_1168 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1168 *win = (struct winInputOriginInfo_t_1168 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1168 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1168 *win = (struct winIVRSpatialAnchors_1168 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1168 *win = (struct winIVRSpatialAnchors_1168 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1168 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1168_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1168 *win = (struct winIVRDebug_1168 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1168_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1168 *win = (struct winIVRDebug_1168 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,332 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.2.10/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1210 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1210 *win = (struct winVREvent_t_1210 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1210 *win = (struct winVREvent_t_1210 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1210 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1210 *win = (struct winVRControllerState001_t_1210 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1210 *win = (struct winVRControllerState001_t_1210 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1210 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1210 *win = (struct winCameraVideoStreamFrameHeader_t_1210 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1210 *win = (struct winCameraVideoStreamFrameHeader_t_1210 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1210 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1210_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1210 *win = (struct winRenderModel_TextureMap_t_1210 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1210 *win = (struct winRenderModel_TextureMap_t_1210 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1210 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1210_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1210 *win = (struct winRenderModel_t_1210 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1210 *win = (struct winRenderModel_t_1210 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1210 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1210 *win = (struct winInputAnalogActionData_t_1210 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1210 *win = (struct winInputAnalogActionData_t_1210 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1210 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1210 *win = (struct winInputDigitalActionData_t_1210 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1210 *win = (struct winInputDigitalActionData_t_1210 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1210 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1210 *win = (struct winInputPoseActionData_t_1210 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1210 *win = (struct winInputPoseActionData_t_1210 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1210 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1210 *win = (struct winInputSkeletalActionData_t_1210 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1210 *win = (struct winInputSkeletalActionData_t_1210 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1210 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1210_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1210 *win = (struct winInputOriginInfo_t_1210 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1210 *win = (struct winInputOriginInfo_t_1210 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1210 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1210_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1210 *win = (struct winIVRSpatialAnchors_1210 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1210_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1210 *win = (struct winIVRSpatialAnchors_1210 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,404 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.23.7/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_1237 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1237 *win = (struct winVRVulkanTextureArrayData_t_1237 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1237 *win = (struct winVRVulkanTextureArrayData_t_1237 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1237 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1237 *win = (struct winVREvent_t_1237 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1237 *win = (struct winVREvent_t_1237 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1237 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1237 *win = (struct winVRControllerState001_t_1237 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1237 *win = (struct winVRControllerState001_t_1237 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1237 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1237 *win = (struct winCameraVideoStreamFrameHeader_t_1237 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1237 *win = (struct winCameraVideoStreamFrameHeader_t_1237 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_1237 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_1237 *win = (struct winVROverlayView_t_1237 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_1237 *win = (struct winVROverlayView_t_1237 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1237 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
uint16_t unMipLevels;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1237 *win = (struct winRenderModel_TextureMap_t_1237 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
win->unMipLevels = lin->unMipLevels;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1237 *win = (struct winRenderModel_TextureMap_t_1237 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
lin->unMipLevels = win->unMipLevels;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1237 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1237 *win = (struct winRenderModel_t_1237 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1237 *win = (struct winRenderModel_t_1237 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1237 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1237 *win = (struct winInputAnalogActionData_t_1237 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1237 *win = (struct winInputAnalogActionData_t_1237 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1237 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1237 *win = (struct winInputDigitalActionData_t_1237 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1237 *win = (struct winInputDigitalActionData_t_1237 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1237 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1237 *win = (struct winInputPoseActionData_t_1237 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1237 *win = (struct winInputPoseActionData_t_1237 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1237 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1237 *win = (struct winInputSkeletalActionData_t_1237 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1237 *win = (struct winInputSkeletalActionData_t_1237 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1237 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1237_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1237 *win = (struct winInputOriginInfo_t_1237 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1237 *win = (struct winInputOriginInfo_t_1237 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1237 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1237 *win = (struct winIVRSpatialAnchors_1237 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1237 *win = (struct winIVRSpatialAnchors_1237 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1237 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1237_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1237 *win = (struct winIVRDebug_1237 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1237_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1237 *win = (struct winIVRDebug_1237 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,404 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.26.7/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVRVulkanTextureArrayData_t_1267 {
|
||||
uint32_t m_unArrayIndex;
|
||||
uint32_t m_unArraySize;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1267 *win = (struct winVRVulkanTextureArrayData_t_1267 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
win->m_unArrayIndex = lin->m_unArrayIndex;
|
||||
win->m_unArraySize = lin->m_unArraySize;
|
||||
}
|
||||
|
||||
void struct_VRVulkanTextureArrayData_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRVulkanTextureArrayData_t_1267 *win = (struct winVRVulkanTextureArrayData_t_1267 *)w;
|
||||
VRVulkanTextureArrayData_t *lin = (VRVulkanTextureArrayData_t *)l;
|
||||
lin->m_unArrayIndex = win->m_unArrayIndex;
|
||||
lin->m_unArraySize = win->m_unArraySize;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1267 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1267 *win = (struct winVREvent_t_1267 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1267 *win = (struct winVREvent_t_1267 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1267 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1267 *win = (struct winVRControllerState001_t_1267 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1267 *win = (struct winVRControllerState001_t_1267 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1267 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1267 *win = (struct winCameraVideoStreamFrameHeader_t_1267 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1267 *win = (struct winCameraVideoStreamFrameHeader_t_1267 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVROverlayView_t_1267 {
|
||||
vr::VROverlayHandle_t overlayHandle;
|
||||
vr::Texture_t texture __attribute__((aligned(4)));
|
||||
vr::VRTextureBounds_t textureBounds __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VROverlayView_t_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winVROverlayView_t_1267 *win = (struct winVROverlayView_t_1267 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
win->overlayHandle = lin->overlayHandle;
|
||||
win->texture = lin->texture;
|
||||
win->textureBounds = lin->textureBounds;
|
||||
}
|
||||
|
||||
void struct_VROverlayView_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVROverlayView_t_1267 *win = (struct winVROverlayView_t_1267 *)w;
|
||||
VROverlayView_t *lin = (VROverlayView_t *)l;
|
||||
lin->overlayHandle = win->overlayHandle;
|
||||
lin->texture = win->texture;
|
||||
lin->textureBounds = win->textureBounds;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1267 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
vr::EVRRenderModelTextureFormat format;
|
||||
uint16_t unMipLevels;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1267 *win = (struct winRenderModel_TextureMap_t_1267 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
win->format = lin->format;
|
||||
win->unMipLevels = lin->unMipLevels;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1267 *win = (struct winRenderModel_TextureMap_t_1267 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
lin->format = win->format;
|
||||
lin->unMipLevels = win->unMipLevels;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1267 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1267 *win = (struct winRenderModel_t_1267 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1267 *win = (struct winRenderModel_t_1267 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1267 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1267 *win = (struct winInputAnalogActionData_t_1267 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1267 *win = (struct winInputAnalogActionData_t_1267 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1267 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1267 *win = (struct winInputDigitalActionData_t_1267 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1267 *win = (struct winInputDigitalActionData_t_1267 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1267 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1267 *win = (struct winInputPoseActionData_t_1267 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1267 *win = (struct winInputPoseActionData_t_1267 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1267 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1267 *win = (struct winInputSkeletalActionData_t_1267 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1267 *win = (struct winInputSkeletalActionData_t_1267 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1267 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1267_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1267 *win = (struct winInputOriginInfo_t_1267 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1267 *win = (struct winInputOriginInfo_t_1267 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1267 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1267 *win = (struct winIVRSpatialAnchors_1267 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1267 *win = (struct winIVRSpatialAnchors_1267 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1267 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1267_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1267 *win = (struct winIVRDebug_1267 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1267_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1267 *win = (struct winIVRDebug_1267 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,332 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.3.22/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1322 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1322 *win = (struct winVREvent_t_1322 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1322 *win = (struct winVREvent_t_1322 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1322 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1322 *win = (struct winVRControllerState001_t_1322 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1322 *win = (struct winVRControllerState001_t_1322 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1322 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1322 *win = (struct winCameraVideoStreamFrameHeader_t_1322 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1322 *win = (struct winCameraVideoStreamFrameHeader_t_1322 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1322 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1322_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1322 *win = (struct winRenderModel_TextureMap_t_1322 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1322 *win = (struct winRenderModel_TextureMap_t_1322 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1322 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1322_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1322 *win = (struct winRenderModel_t_1322 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1322 *win = (struct winRenderModel_t_1322 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1322 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1322 *win = (struct winInputAnalogActionData_t_1322 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1322 *win = (struct winInputAnalogActionData_t_1322 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1322 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1322 *win = (struct winInputDigitalActionData_t_1322 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1322 *win = (struct winInputDigitalActionData_t_1322 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1322 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1322 *win = (struct winInputPoseActionData_t_1322 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1322 *win = (struct winInputPoseActionData_t_1322 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1322 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1322 *win = (struct winInputSkeletalActionData_t_1322 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1322 *win = (struct winInputSkeletalActionData_t_1322 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1322 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1322_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1322 *win = (struct winInputOriginInfo_t_1322 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1322 *win = (struct winInputOriginInfo_t_1322 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1322 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1322_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1322 *win = (struct winIVRSpatialAnchors_1322 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1322_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1322 *win = (struct winIVRSpatialAnchors_1322 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,332 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.4.18/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1418 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1418 *win = (struct winVREvent_t_1418 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1418 *win = (struct winVREvent_t_1418 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1418 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1418 *win = (struct winVRControllerState001_t_1418 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1418 *win = (struct winVRControllerState001_t_1418 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1418 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1418 *win = (struct winCameraVideoStreamFrameHeader_t_1418 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1418 *win = (struct winCameraVideoStreamFrameHeader_t_1418 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1418 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1418_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1418 *win = (struct winRenderModel_TextureMap_t_1418 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1418 *win = (struct winRenderModel_TextureMap_t_1418 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1418 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1418_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1418 *win = (struct winRenderModel_t_1418 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1418 *win = (struct winRenderModel_t_1418 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1418 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1418 *win = (struct winInputAnalogActionData_t_1418 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1418 *win = (struct winInputAnalogActionData_t_1418 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1418 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1418 *win = (struct winInputDigitalActionData_t_1418 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1418 *win = (struct winInputDigitalActionData_t_1418 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1418 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1418 *win = (struct winInputPoseActionData_t_1418 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1418 *win = (struct winInputPoseActionData_t_1418 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1418 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1418 *win = (struct winInputSkeletalActionData_t_1418 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1418 *win = (struct winInputSkeletalActionData_t_1418 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1418 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1418_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1418 *win = (struct winInputOriginInfo_t_1418 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1418 *win = (struct winInputOriginInfo_t_1418 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1418 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1418_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1418 *win = (struct winIVRSpatialAnchors_1418 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1418_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1418 *win = (struct winIVRSpatialAnchors_1418 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.5.17/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1517 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1517 *win = (struct winVREvent_t_1517 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1517 *win = (struct winVREvent_t_1517 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1517 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1517 *win = (struct winVRControllerState001_t_1517 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1517 *win = (struct winVRControllerState001_t_1517 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1517 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1517 *win = (struct winCameraVideoStreamFrameHeader_t_1517 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1517 *win = (struct winCameraVideoStreamFrameHeader_t_1517 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1517 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1517_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1517 *win = (struct winRenderModel_TextureMap_t_1517 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1517 *win = (struct winRenderModel_TextureMap_t_1517 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1517 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1517_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1517 *win = (struct winRenderModel_t_1517 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1517 *win = (struct winRenderModel_t_1517 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1517 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1517 *win = (struct winInputAnalogActionData_t_1517 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1517 *win = (struct winInputAnalogActionData_t_1517 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1517 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1517 *win = (struct winInputDigitalActionData_t_1517 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1517 *win = (struct winInputDigitalActionData_t_1517 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1517 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1517 *win = (struct winInputPoseActionData_t_1517 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1517 *win = (struct winInputPoseActionData_t_1517 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1517 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1517 *win = (struct winInputSkeletalActionData_t_1517 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1517 *win = (struct winInputSkeletalActionData_t_1517 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1517 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1517_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1517 *win = (struct winInputOriginInfo_t_1517 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1517 *win = (struct winInputOriginInfo_t_1517 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1517 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1517_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1517 *win = (struct winIVRSpatialAnchors_1517 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1517 *win = (struct winIVRSpatialAnchors_1517 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1517 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1517_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1517 *win = (struct winIVRDebug_1517 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1517_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1517 *win = (struct winIVRDebug_1517 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.6.10/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1610 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1610 *win = (struct winVREvent_t_1610 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1610 *win = (struct winVREvent_t_1610 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1610 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1610 *win = (struct winVRControllerState001_t_1610 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1610 *win = (struct winVRControllerState001_t_1610 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1610 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t standingTrackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1610 *win = (struct winCameraVideoStreamFrameHeader_t_1610 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->standingTrackedDevicePose = lin->standingTrackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1610 *win = (struct winCameraVideoStreamFrameHeader_t_1610 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->standingTrackedDevicePose = win->standingTrackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1610 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1610_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1610 *win = (struct winRenderModel_TextureMap_t_1610 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1610 *win = (struct winRenderModel_TextureMap_t_1610 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1610 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1610_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1610 *win = (struct winRenderModel_t_1610 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1610 *win = (struct winRenderModel_t_1610 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1610 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1610 *win = (struct winInputAnalogActionData_t_1610 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1610 *win = (struct winInputAnalogActionData_t_1610 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1610 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1610 *win = (struct winInputDigitalActionData_t_1610 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1610 *win = (struct winInputDigitalActionData_t_1610 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1610 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1610 *win = (struct winInputPoseActionData_t_1610 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1610 *win = (struct winInputPoseActionData_t_1610 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1610 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1610 *win = (struct winInputSkeletalActionData_t_1610 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1610 *win = (struct winInputSkeletalActionData_t_1610 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1610 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1610_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1610 *win = (struct winInputOriginInfo_t_1610 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1610 *win = (struct winInputOriginInfo_t_1610 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1610 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1610_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1610 *win = (struct winIVRSpatialAnchors_1610 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1610 *win = (struct winIVRSpatialAnchors_1610 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1610 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1610_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1610 *win = (struct winIVRDebug_1610 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1610_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1610 *win = (struct winIVRDebug_1610 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.7.15/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1715 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1715 *win = (struct winVREvent_t_1715 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1715 *win = (struct winVREvent_t_1715 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1715 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1715 *win = (struct winVRControllerState001_t_1715 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1715 *win = (struct winVRControllerState001_t_1715 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1715 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1715 *win = (struct winCameraVideoStreamFrameHeader_t_1715 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1715 *win = (struct winCameraVideoStreamFrameHeader_t_1715 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1715 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1715_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1715 *win = (struct winRenderModel_TextureMap_t_1715 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1715 *win = (struct winRenderModel_TextureMap_t_1715 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1715 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1715_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1715 *win = (struct winRenderModel_t_1715 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1715 *win = (struct winRenderModel_t_1715 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1715 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1715 *win = (struct winInputAnalogActionData_t_1715 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1715 *win = (struct winInputAnalogActionData_t_1715 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1715 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1715 *win = (struct winInputDigitalActionData_t_1715 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1715 *win = (struct winInputDigitalActionData_t_1715 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1715 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1715 *win = (struct winInputPoseActionData_t_1715 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1715 *win = (struct winInputPoseActionData_t_1715 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1715 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1715 *win = (struct winInputSkeletalActionData_t_1715 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1715 *win = (struct winInputSkeletalActionData_t_1715 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1715 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1715_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1715 *win = (struct winInputOriginInfo_t_1715 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1715 *win = (struct winInputOriginInfo_t_1715 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1715 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1715_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1715 *win = (struct winIVRSpatialAnchors_1715 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1715 *win = (struct winIVRSpatialAnchors_1715 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1715 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1715_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1715 *win = (struct winIVRDebug_1715 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1715_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1715 *win = (struct winIVRDebug_1715 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.8.19/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1819 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1819 *win = (struct winVREvent_t_1819 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1819 *win = (struct winVREvent_t_1819 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1819 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1819 *win = (struct winVRControllerState001_t_1819 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1819 *win = (struct winVRControllerState001_t_1819 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1819 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1819 *win = (struct winCameraVideoStreamFrameHeader_t_1819 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1819 *win = (struct winCameraVideoStreamFrameHeader_t_1819 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1819 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1819_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1819 *win = (struct winRenderModel_TextureMap_t_1819 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1819 *win = (struct winRenderModel_TextureMap_t_1819 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1819 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1819_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1819 *win = (struct winRenderModel_t_1819 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1819 *win = (struct winRenderModel_t_1819 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1819 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1819 *win = (struct winInputAnalogActionData_t_1819 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1819 *win = (struct winInputAnalogActionData_t_1819 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1819 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1819 *win = (struct winInputDigitalActionData_t_1819 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1819 *win = (struct winInputDigitalActionData_t_1819 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1819 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1819 *win = (struct winInputPoseActionData_t_1819 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1819 *win = (struct winInputPoseActionData_t_1819 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1819 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1819 *win = (struct winInputSkeletalActionData_t_1819 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1819 *win = (struct winInputSkeletalActionData_t_1819 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1819 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1819_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1819 *win = (struct winInputOriginInfo_t_1819 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1819 *win = (struct winInputOriginInfo_t_1819 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1819 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1819_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1819 *win = (struct winIVRSpatialAnchors_1819 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1819 *win = (struct winIVRSpatialAnchors_1819 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1819 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1819_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1819 *win = (struct winIVRDebug_1819 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1819_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1819 *win = (struct winIVRDebug_1819 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v1.9.16/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
#pragma pack(push, 8)
|
||||
struct winVREvent_t_1916 {
|
||||
uint32_t eventType;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
float eventAgeSeconds;
|
||||
vr::VREvent_Data_t data __attribute__((aligned(8)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1916 *win = (struct winVREvent_t_1916 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVREvent_t_1916 *win = (struct winVREvent_t_1916 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
lin->eventType = win->eventType;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
lin->eventAgeSeconds = win->eventAgeSeconds;
|
||||
lin->data = win->data;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winVRControllerState001_t_1916 {
|
||||
uint32_t unPacketNum;
|
||||
uint64_t ulButtonPressed;
|
||||
uint64_t ulButtonTouched;
|
||||
vr::VRControllerAxis_t rAxis[5];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1916 *win = (struct winVRControllerState001_t_1916 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
win->unPacketNum = lin->unPacketNum;
|
||||
win->ulButtonPressed = lin->ulButtonPressed;
|
||||
win->ulButtonTouched = lin->ulButtonTouched;
|
||||
memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis));
|
||||
}
|
||||
|
||||
void struct_VRControllerState001_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winVRControllerState001_t_1916 *win = (struct winVRControllerState001_t_1916 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
lin->unPacketNum = win->unPacketNum;
|
||||
lin->ulButtonPressed = win->ulButtonPressed;
|
||||
lin->ulButtonTouched = win->ulButtonTouched;
|
||||
memcpy(lin->rAxis, win->rAxis, sizeof(lin->rAxis));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winCameraVideoStreamFrameHeader_t_1916 {
|
||||
vr::EVRTrackedCameraFrameType eFrameType;
|
||||
uint32_t nWidth;
|
||||
uint32_t nHeight;
|
||||
uint32_t nBytesPerPixel;
|
||||
uint32_t nFrameSequence;
|
||||
vr::TrackedDevicePose_t trackedDevicePose __attribute__((aligned(4)));
|
||||
uint64_t ulFrameExposureTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1916 *win = (struct winCameraVideoStreamFrameHeader_t_1916 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
win->eFrameType = lin->eFrameType;
|
||||
win->nWidth = lin->nWidth;
|
||||
win->nHeight = lin->nHeight;
|
||||
win->nBytesPerPixel = lin->nBytesPerPixel;
|
||||
win->nFrameSequence = lin->nFrameSequence;
|
||||
win->trackedDevicePose = lin->trackedDevicePose;
|
||||
win->ulFrameExposureTime = lin->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
void struct_CameraVideoStreamFrameHeader_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winCameraVideoStreamFrameHeader_t_1916 *win = (struct winCameraVideoStreamFrameHeader_t_1916 *)w;
|
||||
CameraVideoStreamFrameHeader_t *lin = (CameraVideoStreamFrameHeader_t *)l;
|
||||
lin->eFrameType = win->eFrameType;
|
||||
lin->nWidth = win->nWidth;
|
||||
lin->nHeight = win->nHeight;
|
||||
lin->nBytesPerPixel = win->nBytesPerPixel;
|
||||
lin->nFrameSequence = win->nFrameSequence;
|
||||
lin->trackedDevicePose = win->trackedDevicePose;
|
||||
lin->ulFrameExposureTime = win->ulFrameExposureTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_TextureMap_t_1916 {
|
||||
uint16_t unWidth;
|
||||
uint16_t unHeight;
|
||||
const uint8_t * rubTextureMapData;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1916 *win = (struct winRenderModel_TextureMap_t_1916 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
win->unWidth = lin->unWidth;
|
||||
win->unHeight = lin->unHeight;
|
||||
win->rubTextureMapData = lin->rubTextureMapData;
|
||||
}
|
||||
|
||||
void struct_RenderModel_TextureMap_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_TextureMap_t_1916 *win = (struct winRenderModel_TextureMap_t_1916 *)w;
|
||||
RenderModel_TextureMap_t *lin = (RenderModel_TextureMap_t *)l;
|
||||
lin->unWidth = win->unWidth;
|
||||
lin->unHeight = win->unHeight;
|
||||
lin->rubTextureMapData = win->rubTextureMapData;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winRenderModel_t_1916 {
|
||||
const vr::RenderModel_Vertex_t * rVertexData;
|
||||
uint32_t unVertexCount;
|
||||
const uint16_t * rIndexData;
|
||||
uint32_t unTriangleCount;
|
||||
vr::TextureID_t diffuseTextureId;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_RenderModel_t_1916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winRenderModel_t_1916 *win = (struct winRenderModel_t_1916 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
win->rVertexData = lin->rVertexData;
|
||||
win->unVertexCount = lin->unVertexCount;
|
||||
win->rIndexData = lin->rIndexData;
|
||||
win->unTriangleCount = lin->unTriangleCount;
|
||||
win->diffuseTextureId = lin->diffuseTextureId;
|
||||
}
|
||||
|
||||
void struct_RenderModel_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winRenderModel_t_1916 *win = (struct winRenderModel_t_1916 *)w;
|
||||
RenderModel_t *lin = (RenderModel_t *)l;
|
||||
lin->rVertexData = win->rVertexData;
|
||||
lin->unVertexCount = win->unVertexCount;
|
||||
lin->rIndexData = win->rIndexData;
|
||||
lin->unTriangleCount = win->unTriangleCount;
|
||||
lin->diffuseTextureId = win->diffuseTextureId;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputAnalogActionData_t_1916 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float deltaX;
|
||||
float deltaY;
|
||||
float deltaZ;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputAnalogActionData_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1916 *win = (struct winInputAnalogActionData_t_1916 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->x = lin->x;
|
||||
win->y = lin->y;
|
||||
win->z = lin->z;
|
||||
win->deltaX = lin->deltaX;
|
||||
win->deltaY = lin->deltaY;
|
||||
win->deltaZ = lin->deltaZ;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputAnalogActionData_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputAnalogActionData_t_1916 *win = (struct winInputAnalogActionData_t_1916 *)w;
|
||||
InputAnalogActionData_t *lin = (InputAnalogActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->x = win->x;
|
||||
lin->y = win->y;
|
||||
lin->z = win->z;
|
||||
lin->deltaX = win->deltaX;
|
||||
lin->deltaY = win->deltaY;
|
||||
lin->deltaZ = win->deltaZ;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputDigitalActionData_t_1916 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
bool bState;
|
||||
bool bChanged;
|
||||
float fUpdateTime;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputDigitalActionData_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1916 *win = (struct winInputDigitalActionData_t_1916 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->bState = lin->bState;
|
||||
win->bChanged = lin->bChanged;
|
||||
win->fUpdateTime = lin->fUpdateTime;
|
||||
}
|
||||
|
||||
void struct_InputDigitalActionData_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputDigitalActionData_t_1916 *win = (struct winInputDigitalActionData_t_1916 *)w;
|
||||
InputDigitalActionData_t *lin = (InputDigitalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->bState = win->bState;
|
||||
lin->bChanged = win->bChanged;
|
||||
lin->fUpdateTime = win->fUpdateTime;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputPoseActionData_t_1916 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
vr::TrackedDevicePose_t pose __attribute__((aligned(4)));
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputPoseActionData_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputPoseActionData_t_1916 *win = (struct winInputPoseActionData_t_1916 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
win->pose = lin->pose;
|
||||
}
|
||||
|
||||
void struct_InputPoseActionData_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputPoseActionData_t_1916 *win = (struct winInputPoseActionData_t_1916 *)w;
|
||||
InputPoseActionData_t *lin = (InputPoseActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
lin->pose = win->pose;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputSkeletalActionData_t_1916 {
|
||||
bool bActive;
|
||||
vr::VRInputValueHandle_t activeOrigin;
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputSkeletalActionData_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1916 *win = (struct winInputSkeletalActionData_t_1916 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
win->bActive = lin->bActive;
|
||||
win->activeOrigin = lin->activeOrigin;
|
||||
}
|
||||
|
||||
void struct_InputSkeletalActionData_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputSkeletalActionData_t_1916 *win = (struct winInputSkeletalActionData_t_1916 *)w;
|
||||
InputSkeletalActionData_t *lin = (InputSkeletalActionData_t *)l;
|
||||
lin->bActive = win->bActive;
|
||||
lin->activeOrigin = win->activeOrigin;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winInputOriginInfo_t_1916 {
|
||||
vr::VRInputValueHandle_t devicePath;
|
||||
vr::TrackedDeviceIndex_t trackedDeviceIndex;
|
||||
char rchRenderModelComponentName[128];
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_InputOriginInfo_t_1916_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winInputOriginInfo_t_1916 *win = (struct winInputOriginInfo_t_1916 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
win->devicePath = lin->devicePath;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
memcpy(win->rchRenderModelComponentName, lin->rchRenderModelComponentName, sizeof(win->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
void struct_InputOriginInfo_t_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winInputOriginInfo_t_1916 *win = (struct winInputOriginInfo_t_1916 *)w;
|
||||
InputOriginInfo_t *lin = (InputOriginInfo_t *)l;
|
||||
lin->devicePath = win->devicePath;
|
||||
lin->trackedDeviceIndex = win->trackedDeviceIndex;
|
||||
memcpy(lin->rchRenderModelComponentName, win->rchRenderModelComponentName, sizeof(lin->rchRenderModelComponentName));
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRSpatialAnchors_1916 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRSpatialAnchors_1916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1916 *win = (struct winIVRSpatialAnchors_1916 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
void struct_IVRSpatialAnchors_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRSpatialAnchors_1916 *win = (struct winIVRSpatialAnchors_1916 *)w;
|
||||
IVRSpatialAnchors *lin = (IVRSpatialAnchors *)l;
|
||||
}
|
||||
|
||||
#pragma pack(push, 8)
|
||||
struct winIVRDebug_1916 {
|
||||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_IVRDebug_1916_lin_to_win(void *l, void *w)
|
||||
{
|
||||
struct winIVRDebug_1916 *win = (struct winIVRDebug_1916 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
void struct_IVRDebug_1916_win_to_lin(const void *w, void *l)
|
||||
{
|
||||
struct winIVRDebug_1916 *win = (struct winIVRDebug_1916 *)w;
|
||||
IVRDebug *lin = (IVRDebug *)l;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user