diff --git a/vrclient_x64/gen_wrapper.py b/vrclient_x64/gen_wrapper.py index a8ecec09..f54e2e75 100755 --- a/vrclient_x64/gen_wrapper.py +++ b/vrclient_x64/gen_wrapper.py @@ -221,6 +221,8 @@ skip_structs = [ # "SteamUGCRequestUGCDetailsResult_t_9764" ] +struct_conversion_cache = {} + print_sizes = [] class_versions = {} @@ -359,8 +361,10 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e cfile.write(", %s *_r" % strip_ns(method.result_type.spelling)) unnamed = 'a' do_lin_to_win = None + do_win_to_lin = None do_wrap = None do_unwrap = None + need_convert = [] for param in get_params(method): if param.type.kind == clang.cindex.TypeKind.POINTER and \ param.type.get_pointee().kind == clang.cindex.TypeKind.UNEXPOSED: @@ -368,7 +372,11 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e typename = "void *" else: typename = param.type.spelling.split("::")[-1].replace("&", "*"); + real_type = param.type; + while real_type.kind == clang.cindex.TypeKind.POINTER: + real_type = real_type.get_pointee() if param.type.kind == clang.cindex.TypeKind.POINTER: + print("checking param %s" % real_type.spelling) if strip_ns(param.type.get_pointee().get_canonical().spelling) in user_structs: do_lin_to_win = (strip_ns(param.type.get_pointee().get_canonical().spelling), param.spelling) typename = "win" + do_lin_to_win[0] + "_" + display_sdkver(sdkver) + " *" @@ -379,6 +387,13 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e strip_ns(param.type.get_pointee().get_pointee().get_canonical().spelling) in system_structs: do_wrap = (strip_ns(param.type.get_pointee().get_pointee().get_canonical().spelling), param.spelling) typename = "win" + do_wrap[0] + "_" + display_sdkver(sdkver) + " **" + elif real_type.kind == clang.cindex.TypeKind.RECORD and \ + struct_needs_conversion(real_type): + do_win_to_lin = (strip_ns(real_type.spelling), param.spelling) + do_lin_to_win = (strip_ns(real_type.spelling), param.spelling) + #preserve pointers + typename = typename.replace(real_type.spelling, "win%s_%s" % (strip_ns(real_type.spelling), display_sdkver(sdkver))) + if param.spelling == "": cfile.write(", %s _%s" % (typename, unnamed)) cpp.write(", %s _%s" % (typename, unnamed)) @@ -410,7 +425,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e elif len(path_conv["l2w_names"]) > 0: cfile.write(" %s path_result;\n" % method.result_type.spelling) - if do_lin_to_win: + if do_lin_to_win or do_win_to_lin: cpp.write(" %s lin;\n" % do_lin_to_win[0]) cpp.write(" %s _ret;\n" % method.result_type.spelling) @@ -420,6 +435,10 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e cfile.write(" TRACE(\"%p\\n\", _this);\n") + if do_win_to_lin: + cpp.write(" if(%s)\n" % do_win_to_lin[1]) + cpp.write(" struct_%s_%s_win_to_lin(%s, &lin);\n" % (strip_ns(do_win_to_lin[0]), display_sdkver(sdkver), do_win_to_lin[1])) + if method.result_type.kind == clang.cindex.TypeKind.VOID: cfile.write(" ") cpp.write(" ") @@ -429,7 +448,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e elif returns_record: cfile.write(" *_r = ") cpp.write(" return ") - elif do_lin_to_win: + elif do_lin_to_win or do_win_to_lin: cfile.write(" return ") cpp.write(" _ret = ") elif do_wrap: @@ -469,6 +488,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e unnamed = chr(ord(unnamed) + 1) else: if do_lin_to_win and do_lin_to_win[1] == param.spelling or \ + do_win_to_lin and do_win_to_lin[1] == param.spelling or \ do_wrap and do_wrap[1] == param.spelling: cfile.write(", %s" % param.spelling) cpp.write("%s ? &lin : nullptr" % param.spelling) @@ -705,39 +725,117 @@ def strip_const(typename): return typename.replace("const ", "", 1) def find_windows_struct(struct): - for child in list(windows_build.cursor.get_children()): - if strip_const(struct.spelling) == child.spelling: - return child.type + children = list(windows_build.cursor.get_children()) + for child in children: + if child.kind == clang.cindex.CursorKind.NAMESPACE and child.displayname == "vr": + for vrchild in list(child.get_children()): + if strip_const(strip_ns(struct.spelling)) == strip_ns(vrchild.type.spelling): + return vrchild.type + else: + if strip_const(strip_ns(struct.spelling)) == strip_ns(child.type.spelling): + return child.type return None +def find_windows64_struct(struct): + children = list(windows_build64.cursor.get_children()) + for child in children: + if child.kind == clang.cindex.CursorKind.NAMESPACE and child.displayname == "vr": + for vrchild in list(child.get_children()): + if strip_const(struct.spelling) == vrchild.type.spelling: + return vrchild.type + else: + if strip_const(strip_ns(struct.spelling)) == strip_ns(child.type.spelling): + return child.type + return None + +def find_linux64_struct(struct): + children = list(linux_build64.cursor.get_children()) + for child in children: + if child.kind == clang.cindex.CursorKind.NAMESPACE and child.displayname == "vr": + for vrchild in list(child.get_children()): + if strip_const(struct.spelling) == vrchild.type.spelling: + return vrchild.type + else: + if strip_const(strip_ns(struct.spelling)) == strip_ns(child.type.spelling): + return child.type + return None + +def struct_needs_conversion_nocache(struct): +# if strip_const(struct.spelling) in exempt_structs: +# return False +# if strip_const(struct.spelling) in manually_handled_structs: +# return True + + #check 32-bit compat + windows_struct = find_windows_struct(struct) + assert(not windows_struct is None) #must find windows_struct + for field in struct.get_fields(): + if struct.get_offset(field.spelling) != windows_struct.get_offset(field.spelling): + return True + if field.type.kind == clang.cindex.TypeKind.RECORD and \ + struct_needs_conversion(field.type): + return True + + #check 64-bit compat + windows_struct = find_windows64_struct(struct) + assert(not windows_struct is None) #must find windows_struct + lin64_struct = find_linux64_struct(struct) + assert(not lin64_struct is None) #must find lin64_struct + for field in lin64_struct.get_fields(): + if lin64_struct.get_offset(field.spelling) != windows_struct.get_offset(field.spelling): + return True + if field.type.kind == clang.cindex.TypeKind.RECORD and \ + struct_needs_conversion(field.type): + return True + + return False + +def struct_needs_conversion(struct): + if not sdkver in struct_conversion_cache: + struct_conversion_cache[sdkver] = {} + if not strip_const(struct.spelling) in struct_conversion_cache[sdkver]: + struct_conversion_cache[sdkver][strip_const(struct.spelling)] = struct_needs_conversion_nocache(struct) + return struct_conversion_cache[sdkver][strip_const(struct.spelling)] + def get_field_attribute_str(field): if field.type.kind != clang.cindex.TypeKind.RECORD: return "" win_struct = find_windows_struct(field.type) - if win_struct is None: - align = field.type.get_align() - else: - align = win_struct.get_align() + align = win_struct.get_align() return " __attribute__((aligned(" + str(align) + ")))" generated_struct_handlers = [] cpp_files_need_close_brace = [] LIN_TO_WIN=1 -WRAPPERS=2 +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. -#TODO: could we optimize this by detecting if the structs are the -#same layout at generation-time? -def handle_struct(sdkver, struct, which): +def handle_struct(sdkver, struct): handler_name = "%s_%s" % (struct.displayname, 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): + which.add(LIN_TO_WIN) + which.add(WIN_TO_LIN) + + if strip_ns(vrchild.displayname) in user_structs: + which.add(LIN_TO_WIN) + + if strip_ns(vrchild.displayname) in system_structs: + which.add(WRAPPERS) + + 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) @@ -763,41 +861,79 @@ def handle_struct(sdkver, struct, which): if m.kind == clang.cindex.CursorKind.FIELD_DECL: if m.type.kind == clang.cindex.TypeKind.CONSTANTARRAY: cppfile.write(" %s %s[%u];\n" % (m.type.element_type.spelling, m.displayname, m.type.element_count)) + elif m.type.kind == clang.cindex.TypeKind.RECORD and \ + struct_needs_conversion(m.type): + cppfile.write(" win%s_%s %s;\n" % (strip_ns(m.type.spelling), display_sdkver(sdkver), m.displayname)) else: - cppfile.write(" %s %s%s;\n" % (m.type.spelling, m.displayname, get_field_attribute_str(m))) - if which == WRAPPERS: + if m.type.kind == clang.cindex.TypeKind.POINTER and \ + m.type.get_pointee().kind == clang.cindex.TypeKind.FUNCTIONPROTO: + cppfile.write(" void *%s; /*fn pointer*/\n" % m.displayname) + else: + cppfile.write(" %s %s%s;\n" % (m.type.spelling, m.displayname, get_field_attribute_str(m))) + if WRAPPERS in which: cppfile.write("\n %s *linux_side;\n" % struct.displayname) cppfile.write("} __attribute__ ((ms_struct));\n") cppfile.write("#pragma pack(pop)\n\n") - if which == LIN_TO_WIN: + if LIN_TO_WIN in which: hfile.write("extern void struct_%s_lin_to_win(void *l, void *w);\n" % handler_name) + cppfile.write("void struct_%s_lin_to_win(void *l, void *w)\n{\n" % handler_name) cppfile.write(" struct win%s *win = (struct win%s *)w;\n" % (handler_name, handler_name)) - elif which == WRAPPERS: + cppfile.write(" %s *lin = (%s *)l;\n" % (struct.displayname, struct.displayname)) + + for m in struct.get_children(): + if m.kind == clang.cindex.CursorKind.FIELD_DECL: + if m.type.kind == clang.cindex.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(win->%s, lin->%s, sizeof(win->%s));\n" % (m.displayname, m.displayname, m.displayname)) + else: + cppfile.write(" win->%s = lin->%s;\n" % (m.displayname, m.displayname)) + + cppfile.write("}\n\n") + + if WIN_TO_LIN in which: + hfile.write("extern void struct_%s_win_to_lin(void *w, void *l);\n" % handler_name) + + cppfile.write("void struct_%s_win_to_lin(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.displayname, struct.displayname)) + + for m in struct.get_children(): + if m.kind == clang.cindex.CursorKind.FIELD_DECL: + if m.type.kind == clang.cindex.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(lin->%s, win->%s, sizeof(lin->%s));\n" % (m.displayname, m.displayname, m.displayname)) + else: + cppfile.write(" lin->%s = win->%s;\n" % (m.displayname, m.displayname)) + + 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.displayname, struct.displayname)) - cppfile.write(" %s *lin = (%s *)l;\n" % (struct.displayname, struct.displayname)) + for m in struct.get_children(): + if m.kind == clang.cindex.CursorKind.FIELD_DECL: + if m.type.kind == clang.cindex.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(win->%s, lin->%s, sizeof(win->%s));\n" % (m.displayname, m.displayname, m.displayname)) + else: + cppfile.write(" win->%s = lin->%s;\n" % (m.displayname, m.displayname)) - for m in struct.get_children(): - if m.kind == clang.cindex.CursorKind.FIELD_DECL: - if m.type.kind == clang.cindex.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(win->%s, lin->%s, sizeof(win->%s));\n" % (m.displayname, m.displayname, m.displayname)) - else: - cppfile.write(" win->%s = lin->%s;\n" % (m.displayname, m.displayname)) - - if which == WRAPPERS: cppfile.write(" win->linux_side = lin;\n"); cppfile.write(" return win;\n") - cppfile.write("}\n\n") + cppfile.write("}\n\n") - if which == WRAPPERS: hfile.write("extern %s *struct_%s_unwrap(win%s *w);\n" % (struct.displayname, handler_name, handler_name)) + cppfile.write("struct %s *struct_%s_unwrap(win%s *w)\n{\n" % (struct.displayname, handler_name, handler_name)) cppfile.write(" %s *ret = w->linux_side;\n" % struct.displayname) cppfile.write(" free(w);\n") @@ -1126,7 +1262,9 @@ for sdkver in sdk_versions: continue index = clang.cindex.Index.create() windows_build = index.parse(input_name, args=['-x', 'c++', '-m32', '-Iopenvr_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct']) + windows_build64 = index.parse(input_name, args=['-x', 'c++', '-m64', '-Iopenvr_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct']) tu = index.parse(input_name, args=['-x', 'c++', '-m32', '-std=c++11', '-DGNUC', '-Iopenvr_%s/' % sdkver, '-I' + CLANG_PATH + '/include/']) + linux_build64 = index.parse(input_name, args=['-x', 'c++', '-m64', '-std=c++11', '-DGNUC', '-Iopenvr_%s/' % sdkver, '-I' + CLANG_PATH + '/include/']) diagnostics = list(tu.diagnostics) if len(diagnostics) > 0: @@ -1141,10 +1279,7 @@ for sdkver in sdk_versions: handle_class(sdkver, vrchild) if vrchild.kind == clang.cindex.CursorKind.STRUCT_DECL or \ vrchild.kind == clang.cindex.CursorKind.CLASS_DECL: - if strip_ns(vrchild.displayname) in user_structs: - handle_struct(sdkver, vrchild, LIN_TO_WIN) - elif strip_ns(vrchild.displayname) in system_structs: - handle_struct(sdkver, vrchild, WRAPPERS) + handle_struct(sdkver, vrchild) if vrchild.displayname in print_sizes: sys.stdout.write("size of %s is %u\n" % (vrchild.displayname, vrchild.type.get_size())) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp index c0aa4965..cc4e2c9c 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp @@ -81,7 +81,14 @@ void cppIVRCompositor_IVRCompositor_005_ClearOverlay(void *linux_side) bool cppIVRCompositor_IVRCompositor_005_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_091_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_091_lin_to_win(&lin, pTiming); + return _ret; } void cppIVRCompositor_IVRCompositor_005_FadeToColor(void *linux_side, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp index e3d84f45..480dd820 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp @@ -56,7 +56,14 @@ void cppIVRCompositor_IVRCompositor_006_ClearLastSubmittedFrame(void *linux_side bool cppIVRCompositor_IVRCompositor_006_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_092_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_092_lin_to_win(&lin, pTiming); + return _ret; } void cppIVRCompositor_IVRCompositor_006_FadeToColor(void *linux_side, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp index 2c6f0e87..6fb6579a 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp @@ -51,7 +51,14 @@ void cppIVRCompositor_IVRCompositor_007_ClearLastSubmittedFrame(void *linux_side bool cppIVRCompositor_IVRCompositor_007_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_098_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_098_lin_to_win(&lin, pTiming); + return _ret; } void cppIVRCompositor_IVRCompositor_007_FadeToColor(void *linux_side, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp index dc60243a..47a34054 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp @@ -51,7 +51,14 @@ void cppIVRCompositor_IVRCompositor_008_ClearLastSubmittedFrame(void *linux_side bool cppIVRCompositor_IVRCompositor_008_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_0910_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_0910_lin_to_win(&lin, pTiming); + return _ret; } void cppIVRCompositor_IVRCompositor_008_FadeToColor(void *linux_side, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp index 6c51cf9e..6dbd3713 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp @@ -46,7 +46,14 @@ void cppIVRCompositor_IVRCompositor_009_PostPresentHandoff(void *linux_side) bool cppIVRCompositor_IVRCompositor_009_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_0913_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_0913_lin_to_win(&lin, pTiming); + return _ret; } float cppIVRCompositor_IVRCompositor_009_GetFrameTimeRemaining(void *linux_side) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp index 13ae704c..2e4edf7e 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp @@ -46,7 +46,14 @@ void cppIVRCompositor_IVRCompositor_010_PostPresentHandoff(void *linux_side) bool cppIVRCompositor_IVRCompositor_010_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_0914_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_0914_lin_to_win(&lin, pTiming); + return _ret; } float cppIVRCompositor_IVRCompositor_010_GetFrameTimeRemaining(void *linux_side) diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp index 6a11a719..6c0ffbc0 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp @@ -51,7 +51,14 @@ void cppIVRCompositor_IVRCompositor_016_PostPresentHandoff(void *linux_side) bool cppIVRCompositor_IVRCompositor_016_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) { - return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo); + Compositor_FrameTiming lin; + bool _ret; + if(pTiming) + struct_Compositor_FrameTiming_103_win_to_lin(pTiming, &lin); + _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); + if(pTiming) + struct_Compositor_FrameTiming_103_lin_to_win(&lin, pTiming); + return _ret; } float cppIVRCompositor_IVRCompositor_016_GetFrameTimeRemaining(void *linux_side) diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp index 9c89a1a2..e8649342 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp @@ -36,22 +36,50 @@ vr::EVRInputError cppIVRInput_IVRInput_003_UpdateActionState(void *linux_side, V vr::EVRInputError cppIVRInput_IVRInput_003_GetDigitalActionData(void *linux_side, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, (vr::InputDigitalActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputDigitalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputDigitalActionData_t_1015_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputDigitalActionData_t_1015_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_003_GetAnalogActionData(void *linux_side, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, (vr::InputAnalogActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputAnalogActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputAnalogActionData_t_1015_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputAnalogActionData_t_1015_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_003_GetPoseActionData(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1015_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputPoseActionData_t_1015_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_003_GetSkeletalActionData(void *linux_side, VRActionHandle_t action, EVRSkeletalTransformSpace eBoneParent, float fPredictedSecondsFromNow, InputSkeletonActionData_t * pActionData, uint32_t unActionDataSize, VRBoneTransform_t * pTransformArray, uint32_t unTransformArrayCount) { - return ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::EVRSkeletalTransformSpace)eBoneParent, (float)fPredictedSecondsFromNow, (vr::InputSkeletonActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRBoneTransform_t *)pTransformArray, (uint32_t)unTransformArrayCount); + InputSkeletonActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputSkeletonActionData_t_1015_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::EVRSkeletalTransformSpace)eBoneParent, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRBoneTransform_t *)pTransformArray, (uint32_t)unTransformArrayCount); + if(pActionData) + struct_InputSkeletonActionData_t_1015_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_003_GetSkeletalActionDataCompressed(void *linux_side, VRActionHandle_t action, EVRSkeletalTransformSpace eBoneParent, float fPredictedSecondsFromNow, void * pvCompressedData, uint32_t unCompressedSize, uint32_t * punRequiredCompressedSize) diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp index 11d0a7a5..e08f3f06 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp @@ -36,22 +36,50 @@ vr::EVRInputError cppIVRInput_IVRInput_004_UpdateActionState(void *linux_side, V vr::EVRInputError cppIVRInput_IVRInput_004_GetDigitalActionData(void *linux_side, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, (vr::InputDigitalActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputDigitalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputDigitalActionData_t_1017_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputDigitalActionData_t_1017_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_004_GetAnalogActionData(void *linux_side, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, (vr::InputAnalogActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputAnalogActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputAnalogActionData_t_1017_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputAnalogActionData_t_1017_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_004_GetPoseActionData(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1017_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1017_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_004_GetSkeletalActionData(void *linux_side, VRActionHandle_t action, InputSkeletalActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::InputSkeletalActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputSkeletalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputSkeletalActionData_t_1017_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputSkeletalActionData_t_1017_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_004_GetSkeletalBoneData(void *linux_side, VRActionHandle_t action, EVRSkeletalTransformSpace eTransformSpace, EVRSkeletalMotionRange eMotionRange, VRBoneTransform_t * pTransformArray, uint32_t unTransformArrayCount, VRInputValueHandle_t ulRestrictToDevice) diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp index 59e3ba12..5c510df3 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp @@ -36,22 +36,50 @@ vr::EVRInputError cppIVRInput_IVRInput_005_UpdateActionState(void *linux_side, V vr::EVRInputError cppIVRInput_IVRInput_005_GetDigitalActionData(void *linux_side, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, (vr::InputDigitalActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputDigitalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputDigitalActionData_t_1322_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputDigitalActionData_t_1322_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_005_GetAnalogActionData(void *linux_side, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, (vr::InputAnalogActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputAnalogActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputAnalogActionData_t_1322_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputAnalogActionData_t_1322_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_005_GetPoseActionData(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1322_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1322_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_005_GetSkeletalActionData(void *linux_side, VRActionHandle_t action, InputSkeletalActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::InputSkeletalActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputSkeletalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputSkeletalActionData_t_1322_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputSkeletalActionData_t_1322_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_005_GetBoneCount(void *linux_side, VRActionHandle_t action, uint32_t * pBoneCount) diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp index 182fe048..5221e77b 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp @@ -36,27 +36,62 @@ vr::EVRInputError cppIVRInput_IVRInput_006_UpdateActionState(void *linux_side, V vr::EVRInputError cppIVRInput_IVRInput_006_GetDigitalActionData(void *linux_side, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, (vr::InputDigitalActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputDigitalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputDigitalActionData_t_1418_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputDigitalActionData_t_1418_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_006_GetAnalogActionData(void *linux_side, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, (vr::InputAnalogActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputAnalogActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputAnalogActionData_t_1418_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputAnalogActionData_t_1418_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataRelativeToNow(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataForNextFrame(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_006_GetSkeletalActionData(void *linux_side, VRActionHandle_t action, InputSkeletalActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::InputSkeletalActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputSkeletalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputSkeletalActionData_t_1418_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputSkeletalActionData_t_1418_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_006_GetBoneCount(void *linux_side, VRActionHandle_t action, uint32_t * pBoneCount) diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp index 309360ed..83d0ffc8 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp @@ -36,27 +36,62 @@ vr::EVRInputError cppIVRInput_IVRInput_007_UpdateActionState(void *linux_side, V vr::EVRInputError cppIVRInput_IVRInput_007_GetDigitalActionData(void *linux_side, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, (vr::InputDigitalActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputDigitalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputDigitalActionData_t_1610_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputDigitalActionData_t_1610_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_007_GetAnalogActionData(void *linux_side, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, (vr::InputAnalogActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputAnalogActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputAnalogActionData_t_1610_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputAnalogActionData_t_1610_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataRelativeToNow(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1610_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataForNextFrame(void *linux_side, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, InputPoseActionData_t * pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice) { - return ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (vr::InputPoseActionData_t *)pActionData, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + InputPoseActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputPoseActionData_t_1610_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); + if(pActionData) + struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_007_GetSkeletalActionData(void *linux_side, VRActionHandle_t action, InputSkeletalActionData_t * pActionData, uint32_t unActionDataSize) { - return ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::InputSkeletalActionData_t *)pActionData, (uint32_t)unActionDataSize); + InputSkeletalActionData_t lin; + vr::EVRInputError _ret; + if(pActionData) + struct_InputSkeletalActionData_t_1610_win_to_lin(pActionData, &lin); + _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize); + if(pActionData) + struct_InputSkeletalActionData_t_1610_lin_to_win(&lin, pActionData); + return _ret; } vr::EVRInputError cppIVRInput_IVRInput_007_GetBoneCount(void *linux_side, VRActionHandle_t action, uint32_t * pBoneCount) diff --git a/vrclient_x64/vrclient_x64/struct_converters.h b/vrclient_x64/vrclient_x64/struct_converters.h index 65007213..7f00a22c 100644 --- a/vrclient_x64/vrclient_x64/struct_converters.h +++ b/vrclient_x64/vrclient_x64/struct_converters.h @@ -1,440 +1,874 @@ typedef struct winVREvent_t_1610 winVREvent_t_1610; extern void struct_VREvent_t_1610_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1610_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1610 winVRControllerState001_t_1610; extern void struct_VRControllerState001_t_1610_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1610_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1610 winCameraVideoStreamFrameHeader_t_1610; +extern void struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1610 winRenderModel_TextureMap_t_1610; +extern void struct_RenderModel_TextureMap_t_1610_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1610_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1610 *struct_RenderModel_TextureMap_t_1610_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1610_unwrap(winRenderModel_TextureMap_t_1610 *w); typedef struct winRenderModel_t_1610 winRenderModel_t_1610; +extern void struct_RenderModel_t_1610_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1610_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1610 *struct_RenderModel_t_1610_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1610_unwrap(winRenderModel_t_1610 *w); +typedef struct winInputAnalogActionData_t_1610 winInputAnalogActionData_t_1610; +extern void struct_InputAnalogActionData_t_1610_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1610_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1610 winInputDigitalActionData_t_1610; +extern void struct_InputDigitalActionData_t_1610_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1610_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1610 winInputPoseActionData_t_1610; +extern void struct_InputPoseActionData_t_1610_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1610_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1610 winInputSkeletalActionData_t_1610; +extern void struct_InputSkeletalActionData_t_1610_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1610_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1517 winVREvent_t_1517; extern void struct_VREvent_t_1517_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1517_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1517 winVRControllerState001_t_1517; extern void struct_VRControllerState001_t_1517_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1517_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1517 winCameraVideoStreamFrameHeader_t_1517; +extern void struct_CameraVideoStreamFrameHeader_t_1517_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1517_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1517 winRenderModel_TextureMap_t_1517; +extern void struct_RenderModel_TextureMap_t_1517_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1517_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1517 *struct_RenderModel_TextureMap_t_1517_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1517_unwrap(winRenderModel_TextureMap_t_1517 *w); typedef struct winRenderModel_t_1517 winRenderModel_t_1517; +extern void struct_RenderModel_t_1517_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1517_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1517 *struct_RenderModel_t_1517_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1517_unwrap(winRenderModel_t_1517 *w); +typedef struct winInputAnalogActionData_t_1517 winInputAnalogActionData_t_1517; +extern void struct_InputAnalogActionData_t_1517_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1517_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1517 winInputDigitalActionData_t_1517; +extern void struct_InputDigitalActionData_t_1517_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1517_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1517 winInputPoseActionData_t_1517; +extern void struct_InputPoseActionData_t_1517_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1517_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1517 winInputSkeletalActionData_t_1517; +extern void struct_InputSkeletalActionData_t_1517_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1517_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1418 winVREvent_t_1418; extern void struct_VREvent_t_1418_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1418_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1418 winVRControllerState001_t_1418; extern void struct_VRControllerState001_t_1418_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1418_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1418 winCameraVideoStreamFrameHeader_t_1418; +extern void struct_CameraVideoStreamFrameHeader_t_1418_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1418_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1418 winRenderModel_TextureMap_t_1418; +extern void struct_RenderModel_TextureMap_t_1418_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1418_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1418 *struct_RenderModel_TextureMap_t_1418_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1418_unwrap(winRenderModel_TextureMap_t_1418 *w); typedef struct winRenderModel_t_1418 winRenderModel_t_1418; +extern void struct_RenderModel_t_1418_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1418_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1418 *struct_RenderModel_t_1418_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1418_unwrap(winRenderModel_t_1418 *w); +typedef struct winInputAnalogActionData_t_1418 winInputAnalogActionData_t_1418; +extern void struct_InputAnalogActionData_t_1418_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1418_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1418 winInputDigitalActionData_t_1418; +extern void struct_InputDigitalActionData_t_1418_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1418_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1418 winInputPoseActionData_t_1418; +extern void struct_InputPoseActionData_t_1418_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1418_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1418 winInputSkeletalActionData_t_1418; +extern void struct_InputSkeletalActionData_t_1418_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1418_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1322 winVREvent_t_1322; extern void struct_VREvent_t_1322_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1322_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1322 winVRControllerState001_t_1322; extern void struct_VRControllerState001_t_1322_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1322_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1322 winCameraVideoStreamFrameHeader_t_1322; +extern void struct_CameraVideoStreamFrameHeader_t_1322_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1322_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1322 winRenderModel_TextureMap_t_1322; +extern void struct_RenderModel_TextureMap_t_1322_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1322_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1322 *struct_RenderModel_TextureMap_t_1322_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1322_unwrap(winRenderModel_TextureMap_t_1322 *w); typedef struct winRenderModel_t_1322 winRenderModel_t_1322; +extern void struct_RenderModel_t_1322_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1322_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1322 *struct_RenderModel_t_1322_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1322_unwrap(winRenderModel_t_1322 *w); +typedef struct winInputAnalogActionData_t_1322 winInputAnalogActionData_t_1322; +extern void struct_InputAnalogActionData_t_1322_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1322_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1322 winInputDigitalActionData_t_1322; +extern void struct_InputDigitalActionData_t_1322_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1322_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1322 winInputPoseActionData_t_1322; +extern void struct_InputPoseActionData_t_1322_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1322_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1322 winInputSkeletalActionData_t_1322; +extern void struct_InputSkeletalActionData_t_1322_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1322_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1210 winVREvent_t_1210; extern void struct_VREvent_t_1210_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1210_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1210 winVRControllerState001_t_1210; extern void struct_VRControllerState001_t_1210_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1210_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1210 winCameraVideoStreamFrameHeader_t_1210; +extern void struct_CameraVideoStreamFrameHeader_t_1210_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1210_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1210 winRenderModel_TextureMap_t_1210; +extern void struct_RenderModel_TextureMap_t_1210_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1210_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1210 *struct_RenderModel_TextureMap_t_1210_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1210_unwrap(winRenderModel_TextureMap_t_1210 *w); typedef struct winRenderModel_t_1210 winRenderModel_t_1210; +extern void struct_RenderModel_t_1210_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1210_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1210 *struct_RenderModel_t_1210_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1210_unwrap(winRenderModel_t_1210 *w); +typedef struct winInputAnalogActionData_t_1210 winInputAnalogActionData_t_1210; +extern void struct_InputAnalogActionData_t_1210_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1210_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1210 winInputDigitalActionData_t_1210; +extern void struct_InputDigitalActionData_t_1210_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1210_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1210 winInputPoseActionData_t_1210; +extern void struct_InputPoseActionData_t_1210_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1210_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1210 winInputSkeletalActionData_t_1210; +extern void struct_InputSkeletalActionData_t_1210_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1210_win_to_lin(void *w, void *l); typedef struct winVREvent_t_113b winVREvent_t_113b; extern void struct_VREvent_t_113b_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_113b_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_113b winVRControllerState001_t_113b; extern void struct_VRControllerState001_t_113b_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_113b_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_113b winCameraVideoStreamFrameHeader_t_113b; +extern void struct_CameraVideoStreamFrameHeader_t_113b_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_113b_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_113b winRenderModel_TextureMap_t_113b; +extern void struct_RenderModel_TextureMap_t_113b_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_113b_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_113b *struct_RenderModel_TextureMap_t_113b_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_113b_unwrap(winRenderModel_TextureMap_t_113b *w); typedef struct winRenderModel_t_113b winRenderModel_t_113b; +extern void struct_RenderModel_t_113b_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_113b_win_to_lin(void *w, void *l); extern struct winRenderModel_t_113b *struct_RenderModel_t_113b_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_113b_unwrap(winRenderModel_t_113b *w); +typedef struct winInputAnalogActionData_t_113b winInputAnalogActionData_t_113b; +extern void struct_InputAnalogActionData_t_113b_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_113b_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_113b winInputDigitalActionData_t_113b; +extern void struct_InputDigitalActionData_t_113b_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_113b_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_113b winInputPoseActionData_t_113b; +extern void struct_InputPoseActionData_t_113b_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_113b_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_113b winInputSkeletalActionData_t_113b; +extern void struct_InputSkeletalActionData_t_113b_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_113b_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1017 winVREvent_t_1017; extern void struct_VREvent_t_1017_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1017_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1017 winVRControllerState001_t_1017; extern void struct_VRControllerState001_t_1017_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1017_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrameHeader_t_1017 winCameraVideoStreamFrameHeader_t_1017; +extern void struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1017 winRenderModel_TextureMap_t_1017; +extern void struct_RenderModel_TextureMap_t_1017_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1017_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1017 *struct_RenderModel_TextureMap_t_1017_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1017_unwrap(winRenderModel_TextureMap_t_1017 *w); typedef struct winRenderModel_t_1017 winRenderModel_t_1017; +extern void struct_RenderModel_t_1017_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1017_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1017 *struct_RenderModel_t_1017_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1017_unwrap(winRenderModel_t_1017 *w); +typedef struct winInputAnalogActionData_t_1017 winInputAnalogActionData_t_1017; +extern void struct_InputAnalogActionData_t_1017_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1017_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1017 winInputDigitalActionData_t_1017; +extern void struct_InputDigitalActionData_t_1017_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1017_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1017 winInputPoseActionData_t_1017; +extern void struct_InputPoseActionData_t_1017_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1017_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1017 winInputSkeletalActionData_t_1017; +extern void struct_InputSkeletalActionData_t_1017_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1017_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1016 winVREvent_t_1016; extern void struct_VREvent_t_1016_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1016_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1016 winVRControllerState001_t_1016; extern void struct_VRControllerState001_t_1016_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1016_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1016 winRenderModel_TextureMap_t_1016; +extern void struct_RenderModel_TextureMap_t_1016_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1016_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1016 *struct_RenderModel_TextureMap_t_1016_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1016_unwrap(winRenderModel_TextureMap_t_1016 *w); typedef struct winRenderModel_t_1016 winRenderModel_t_1016; +extern void struct_RenderModel_t_1016_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1016_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1016 *struct_RenderModel_t_1016_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1016_unwrap(winRenderModel_t_1016 *w); +typedef struct winInputAnalogActionData_t_1016 winInputAnalogActionData_t_1016; +extern void struct_InputAnalogActionData_t_1016_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1016_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1016 winInputDigitalActionData_t_1016; +extern void struct_InputDigitalActionData_t_1016_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1016_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1016 winInputPoseActionData_t_1016; +extern void struct_InputPoseActionData_t_1016_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1016_win_to_lin(void *w, void *l); +typedef struct winInputSkeletalActionData_t_1016 winInputSkeletalActionData_t_1016; +extern void struct_InputSkeletalActionData_t_1016_lin_to_win(void *l, void *w); +extern void struct_InputSkeletalActionData_t_1016_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1015 winVREvent_t_1015; extern void struct_VREvent_t_1015_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1015_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1015 winVRControllerState001_t_1015; extern void struct_VRControllerState001_t_1015_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1015_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1015 winRenderModel_TextureMap_t_1015; +extern void struct_RenderModel_TextureMap_t_1015_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1015_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1015 *struct_RenderModel_TextureMap_t_1015_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1015_unwrap(winRenderModel_TextureMap_t_1015 *w); typedef struct winRenderModel_t_1015 winRenderModel_t_1015; +extern void struct_RenderModel_t_1015_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1015_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1015 *struct_RenderModel_t_1015_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1015_unwrap(winRenderModel_t_1015 *w); +typedef struct winInputAnalogActionData_t_1015 winInputAnalogActionData_t_1015; +extern void struct_InputAnalogActionData_t_1015_lin_to_win(void *l, void *w); +extern void struct_InputAnalogActionData_t_1015_win_to_lin(void *w, void *l); +typedef struct winInputDigitalActionData_t_1015 winInputDigitalActionData_t_1015; +extern void struct_InputDigitalActionData_t_1015_lin_to_win(void *l, void *w); +extern void struct_InputDigitalActionData_t_1015_win_to_lin(void *w, void *l); +typedef struct winInputPoseActionData_t_1015 winInputPoseActionData_t_1015; +extern void struct_InputPoseActionData_t_1015_lin_to_win(void *l, void *w); +extern void struct_InputPoseActionData_t_1015_win_to_lin(void *w, void *l); +typedef struct winInputSkeletonActionData_t_1015 winInputSkeletonActionData_t_1015; +extern void struct_InputSkeletonActionData_t_1015_lin_to_win(void *l, void *w); +extern void struct_InputSkeletonActionData_t_1015_win_to_lin(void *w, void *l); typedef struct winVREvent_t_1014 winVREvent_t_1014; extern void struct_VREvent_t_1014_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1014_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1014 winVRControllerState001_t_1014; extern void struct_VRControllerState001_t_1014_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1014_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1014 winRenderModel_TextureMap_t_1014; +extern void struct_RenderModel_TextureMap_t_1014_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1014_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1014 *struct_RenderModel_TextureMap_t_1014_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1014_unwrap(winRenderModel_TextureMap_t_1014 *w); typedef struct winRenderModel_t_1014 winRenderModel_t_1014; +extern void struct_RenderModel_t_1014_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1014_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1014 *struct_RenderModel_t_1014_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1014_unwrap(winRenderModel_t_1014 *w); typedef struct winVREvent_t_1013 winVREvent_t_1013; extern void struct_VREvent_t_1013_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1013_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1013 winVRControllerState001_t_1013; extern void struct_VRControllerState001_t_1013_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1013_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1013 winRenderModel_TextureMap_t_1013; +extern void struct_RenderModel_TextureMap_t_1013_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1013_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1013 *struct_RenderModel_TextureMap_t_1013_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1013_unwrap(winRenderModel_TextureMap_t_1013 *w); typedef struct winRenderModel_t_1013 winRenderModel_t_1013; +extern void struct_RenderModel_t_1013_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1013_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1013 *struct_RenderModel_t_1013_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1013_unwrap(winRenderModel_t_1013 *w); typedef struct winVREvent_t_1012 winVREvent_t_1012; extern void struct_VREvent_t_1012_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1012_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1012 winVRControllerState001_t_1012; extern void struct_VRControllerState001_t_1012_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1012_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1012 winRenderModel_TextureMap_t_1012; +extern void struct_RenderModel_TextureMap_t_1012_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1012_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1012 *struct_RenderModel_TextureMap_t_1012_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1012_unwrap(winRenderModel_TextureMap_t_1012 *w); typedef struct winRenderModel_t_1012 winRenderModel_t_1012; +extern void struct_RenderModel_t_1012_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1012_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1012 *struct_RenderModel_t_1012_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1012_unwrap(winRenderModel_t_1012 *w); typedef struct winVREvent_t_1011 winVREvent_t_1011; extern void struct_VREvent_t_1011_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1011_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1011 winVRControllerState001_t_1011; extern void struct_VRControllerState001_t_1011_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1011_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1011 winRenderModel_TextureMap_t_1011; +extern void struct_RenderModel_TextureMap_t_1011_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1011_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1011 *struct_RenderModel_TextureMap_t_1011_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1011_unwrap(winRenderModel_TextureMap_t_1011 *w); typedef struct winRenderModel_t_1011 winRenderModel_t_1011; +extern void struct_RenderModel_t_1011_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1011_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1011 *struct_RenderModel_t_1011_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1011_unwrap(winRenderModel_t_1011 *w); typedef struct winVREvent_t_1010 winVREvent_t_1010; extern void struct_VREvent_t_1010_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_1010_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_1010 winVRControllerState001_t_1010; extern void struct_VRControllerState001_t_1010_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_1010_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_1010 winRenderModel_TextureMap_t_1010; +extern void struct_RenderModel_TextureMap_t_1010_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_1010_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_1010 *struct_RenderModel_TextureMap_t_1010_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_1010_unwrap(winRenderModel_TextureMap_t_1010 *w); typedef struct winRenderModel_t_1010 winRenderModel_t_1010; +extern void struct_RenderModel_t_1010_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_1010_win_to_lin(void *w, void *l); extern struct winRenderModel_t_1010 *struct_RenderModel_t_1010_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_1010_unwrap(winRenderModel_t_1010 *w); typedef struct winVREvent_t_109 winVREvent_t_109; extern void struct_VREvent_t_109_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_109_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_109 winVRControllerState001_t_109; extern void struct_VRControllerState001_t_109_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_109_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_109 winRenderModel_TextureMap_t_109; +extern void struct_RenderModel_TextureMap_t_109_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_109_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_109 *struct_RenderModel_TextureMap_t_109_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_109_unwrap(winRenderModel_TextureMap_t_109 *w); typedef struct winRenderModel_t_109 winRenderModel_t_109; +extern void struct_RenderModel_t_109_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_109_win_to_lin(void *w, void *l); extern struct winRenderModel_t_109 *struct_RenderModel_t_109_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_109_unwrap(winRenderModel_t_109 *w); typedef struct winVREvent_t_108 winVREvent_t_108; extern void struct_VREvent_t_108_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_108_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_108 winVRControllerState001_t_108; extern void struct_VRControllerState001_t_108_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_108_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_108 winRenderModel_TextureMap_t_108; +extern void struct_RenderModel_TextureMap_t_108_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_108_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_108 *struct_RenderModel_TextureMap_t_108_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_108_unwrap(winRenderModel_TextureMap_t_108 *w); typedef struct winRenderModel_t_108 winRenderModel_t_108; +extern void struct_RenderModel_t_108_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_108_win_to_lin(void *w, void *l); extern struct winRenderModel_t_108 *struct_RenderModel_t_108_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_108_unwrap(winRenderModel_t_108 *w); typedef struct winVREvent_t_107 winVREvent_t_107; extern void struct_VREvent_t_107_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_107_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_107 winVRControllerState001_t_107; extern void struct_VRControllerState001_t_107_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_107_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_107 winRenderModel_TextureMap_t_107; +extern void struct_RenderModel_TextureMap_t_107_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_107_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_107 *struct_RenderModel_TextureMap_t_107_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_107_unwrap(winRenderModel_TextureMap_t_107 *w); typedef struct winRenderModel_t_107 winRenderModel_t_107; +extern void struct_RenderModel_t_107_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_107_win_to_lin(void *w, void *l); extern struct winRenderModel_t_107 *struct_RenderModel_t_107_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_107_unwrap(winRenderModel_t_107 *w); typedef struct winVREvent_t_106 winVREvent_t_106; extern void struct_VREvent_t_106_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_106_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_106 winVRControllerState001_t_106; extern void struct_VRControllerState001_t_106_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_106_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_106 winRenderModel_TextureMap_t_106; +extern void struct_RenderModel_TextureMap_t_106_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_106_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_106 *struct_RenderModel_TextureMap_t_106_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_106_unwrap(winRenderModel_TextureMap_t_106 *w); typedef struct winRenderModel_t_106 winRenderModel_t_106; +extern void struct_RenderModel_t_106_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_106_win_to_lin(void *w, void *l); extern struct winRenderModel_t_106 *struct_RenderModel_t_106_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_106_unwrap(winRenderModel_t_106 *w); typedef struct winVREvent_t_105 winVREvent_t_105; extern void struct_VREvent_t_105_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_105_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_105 winVRControllerState001_t_105; extern void struct_VRControllerState001_t_105_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_105_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_105 winRenderModel_TextureMap_t_105; +extern void struct_RenderModel_TextureMap_t_105_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_105_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_105 *struct_RenderModel_TextureMap_t_105_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_105_unwrap(winRenderModel_TextureMap_t_105 *w); typedef struct winRenderModel_t_105 winRenderModel_t_105; +extern void struct_RenderModel_t_105_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_105_win_to_lin(void *w, void *l); extern struct winRenderModel_t_105 *struct_RenderModel_t_105_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_105_unwrap(winRenderModel_t_105 *w); typedef struct winVREvent_t_104 winVREvent_t_104; extern void struct_VREvent_t_104_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_104_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_104 winVRControllerState001_t_104; extern void struct_VRControllerState001_t_104_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_104_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_104 winRenderModel_TextureMap_t_104; +extern void struct_RenderModel_TextureMap_t_104_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_104_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_104 *struct_RenderModel_TextureMap_t_104_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_104_unwrap(winRenderModel_TextureMap_t_104 *w); typedef struct winRenderModel_t_104 winRenderModel_t_104; +extern void struct_RenderModel_t_104_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_104_win_to_lin(void *w, void *l); extern struct winRenderModel_t_104 *struct_RenderModel_t_104_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_104_unwrap(winRenderModel_t_104 *w); typedef struct winVREvent_t_103a winVREvent_t_103a; extern void struct_VREvent_t_103a_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_103a_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_103a winVRControllerState001_t_103a; extern void struct_VRControllerState001_t_103a_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_103a_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_103a winRenderModel_TextureMap_t_103a; +extern void struct_RenderModel_TextureMap_t_103a_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_103a_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_103a *struct_RenderModel_TextureMap_t_103a_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_103a_unwrap(winRenderModel_TextureMap_t_103a *w); typedef struct winRenderModel_t_103a winRenderModel_t_103a; +extern void struct_RenderModel_t_103a_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_103a_win_to_lin(void *w, void *l); extern struct winRenderModel_t_103a *struct_RenderModel_t_103a_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_103a_unwrap(winRenderModel_t_103a *w); typedef struct winVREvent_t_103 winVREvent_t_103; extern void struct_VREvent_t_103_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_103_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_103 winVRControllerState001_t_103; extern void struct_VRControllerState001_t_103_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_103_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_103 winCompositor_FrameTiming_103; +extern void struct_Compositor_FrameTiming_103_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_103_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_103 winRenderModel_TextureMap_t_103; +extern void struct_RenderModel_TextureMap_t_103_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_103_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_103 *struct_RenderModel_TextureMap_t_103_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_103_unwrap(winRenderModel_TextureMap_t_103 *w); typedef struct winRenderModel_t_103 winRenderModel_t_103; +extern void struct_RenderModel_t_103_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_103_win_to_lin(void *w, void *l); extern struct winRenderModel_t_103 *struct_RenderModel_t_103_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_103_unwrap(winRenderModel_t_103 *w); typedef struct winVREvent_t_102 winVREvent_t_102; extern void struct_VREvent_t_102_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_102_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_102 winVRControllerState001_t_102; extern void struct_VRControllerState001_t_102_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_102_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_102 winCompositor_FrameTiming_102; +extern void struct_Compositor_FrameTiming_102_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_102_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_102 winRenderModel_TextureMap_t_102; +extern void struct_RenderModel_TextureMap_t_102_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_102_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_102 *struct_RenderModel_TextureMap_t_102_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_102_unwrap(winRenderModel_TextureMap_t_102 *w); typedef struct winRenderModel_t_102 winRenderModel_t_102; +extern void struct_RenderModel_t_102_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_102_win_to_lin(void *w, void *l); extern struct winRenderModel_t_102 *struct_RenderModel_t_102_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_102_unwrap(winRenderModel_t_102 *w); typedef struct winVREvent_t_101 winVREvent_t_101; extern void struct_VREvent_t_101_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_101_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_101 winVRControllerState001_t_101; extern void struct_VRControllerState001_t_101_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_101_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_101 winRenderModel_TextureMap_t_101; +extern void struct_RenderModel_TextureMap_t_101_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_101_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_101 *struct_RenderModel_TextureMap_t_101_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_101_unwrap(winRenderModel_TextureMap_t_101 *w); typedef struct winRenderModel_t_101 winRenderModel_t_101; +extern void struct_RenderModel_t_101_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_101_win_to_lin(void *w, void *l); extern struct winRenderModel_t_101 *struct_RenderModel_t_101_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_101_unwrap(winRenderModel_t_101 *w); typedef struct winVREvent_t_100 winVREvent_t_100; extern void struct_VREvent_t_100_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_100_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_100 winVRControllerState001_t_100; extern void struct_VRControllerState001_t_100_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_100_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_100 winRenderModel_TextureMap_t_100; +extern void struct_RenderModel_TextureMap_t_100_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_100_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_100 *struct_RenderModel_TextureMap_t_100_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_100_unwrap(winRenderModel_TextureMap_t_100 *w); typedef struct winRenderModel_t_100 winRenderModel_t_100; +extern void struct_RenderModel_t_100_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_100_win_to_lin(void *w, void *l); extern struct winRenderModel_t_100 *struct_RenderModel_t_100_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_100_unwrap(winRenderModel_t_100 *w); typedef struct winVREvent_t_0920 winVREvent_t_0920; extern void struct_VREvent_t_0920_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0920_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0920 winVRControllerState001_t_0920; extern void struct_VRControllerState001_t_0920_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0920_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0920 winRenderModel_TextureMap_t_0920; +extern void struct_RenderModel_TextureMap_t_0920_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0920_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0920 *struct_RenderModel_TextureMap_t_0920_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0920_unwrap(winRenderModel_TextureMap_t_0920 *w); typedef struct winRenderModel_t_0920 winRenderModel_t_0920; +extern void struct_RenderModel_t_0920_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0920_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0920 *struct_RenderModel_t_0920_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0920_unwrap(winRenderModel_t_0920 *w); typedef struct winVREvent_t_0919 winVREvent_t_0919; extern void struct_VREvent_t_0919_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0919_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0919 winVRControllerState001_t_0919; extern void struct_VRControllerState001_t_0919_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0919_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0919 winRenderModel_TextureMap_t_0919; +extern void struct_RenderModel_TextureMap_t_0919_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0919_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0919 *struct_RenderModel_TextureMap_t_0919_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0919_unwrap(winRenderModel_TextureMap_t_0919 *w); typedef struct winRenderModel_t_0919 winRenderModel_t_0919; +extern void struct_RenderModel_t_0919_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0919_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0919 *struct_RenderModel_t_0919_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0919_unwrap(winRenderModel_t_0919 *w); typedef struct winVREvent_t_0918 winVREvent_t_0918; extern void struct_VREvent_t_0918_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0918_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0918 winVRControllerState001_t_0918; extern void struct_VRControllerState001_t_0918_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0918_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0918 winRenderModel_TextureMap_t_0918; +extern void struct_RenderModel_TextureMap_t_0918_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0918_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0918 *struct_RenderModel_TextureMap_t_0918_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0918_unwrap(winRenderModel_TextureMap_t_0918 *w); typedef struct winRenderModel_t_0918 winRenderModel_t_0918; +extern void struct_RenderModel_t_0918_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0918_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0918 *struct_RenderModel_t_0918_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0918_unwrap(winRenderModel_t_0918 *w); typedef struct winVREvent_t_0917 winVREvent_t_0917; extern void struct_VREvent_t_0917_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0917_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0917 winVRControllerState001_t_0917; extern void struct_VRControllerState001_t_0917_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0917_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0917 winRenderModel_TextureMap_t_0917; +extern void struct_RenderModel_TextureMap_t_0917_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0917_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0917 *struct_RenderModel_TextureMap_t_0917_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0917_unwrap(winRenderModel_TextureMap_t_0917 *w); typedef struct winRenderModel_t_0917 winRenderModel_t_0917; +extern void struct_RenderModel_t_0917_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0917_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0917 *struct_RenderModel_t_0917_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0917_unwrap(winRenderModel_t_0917 *w); typedef struct winVREvent_t_0916 winVREvent_t_0916; extern void struct_VREvent_t_0916_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0916_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0916 winVRControllerState001_t_0916; extern void struct_VRControllerState001_t_0916_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0916_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0916 winRenderModel_TextureMap_t_0916; +extern void struct_RenderModel_TextureMap_t_0916_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0916_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0916 *struct_RenderModel_TextureMap_t_0916_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0916_unwrap(winRenderModel_TextureMap_t_0916 *w); typedef struct winRenderModel_t_0916 winRenderModel_t_0916; +extern void struct_RenderModel_t_0916_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0916_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0916 *struct_RenderModel_t_0916_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0916_unwrap(winRenderModel_t_0916 *w); typedef struct winVREvent_t_0915 winVREvent_t_0915; extern void struct_VREvent_t_0915_lin_to_win(void *l, void *w); +extern void struct_VREvent_t_0915_win_to_lin(void *w, void *l); typedef struct winVRControllerState001_t_0915 winVRControllerState001_t_0915; extern void struct_VRControllerState001_t_0915_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0915_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0915 winRenderModel_TextureMap_t_0915; +extern void struct_RenderModel_TextureMap_t_0915_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0915_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0915 *struct_RenderModel_TextureMap_t_0915_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0915_unwrap(winRenderModel_TextureMap_t_0915 *w); typedef struct winRenderModel_t_0915 winRenderModel_t_0915; +extern void struct_RenderModel_t_0915_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0915_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0915 *struct_RenderModel_t_0915_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0915_unwrap(winRenderModel_t_0915 *w); typedef struct winVREvent_t_0914 winVREvent_t_0914; extern void struct_VREvent_t_0914_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_0914 winVRControllerState001_t_0914; extern void struct_VRControllerState001_t_0914_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0914_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrame_t_0914 winCameraVideoStreamFrame_t_0914; +extern void struct_CameraVideoStreamFrame_t_0914_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrame_t_0914_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_0914 winCompositor_FrameTiming_0914; +extern void struct_Compositor_FrameTiming_0914_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_0914_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0914 winRenderModel_TextureMap_t_0914; +extern void struct_RenderModel_TextureMap_t_0914_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0914_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0914 *struct_RenderModel_TextureMap_t_0914_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0914_unwrap(winRenderModel_TextureMap_t_0914 *w); typedef struct winRenderModel_t_0914 winRenderModel_t_0914; +extern void struct_RenderModel_t_0914_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0914_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0914 *struct_RenderModel_t_0914_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0914_unwrap(winRenderModel_t_0914 *w); typedef struct winVREvent_t_0913 winVREvent_t_0913; extern void struct_VREvent_t_0913_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_0913 winVRControllerState001_t_0913; extern void struct_VRControllerState001_t_0913_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0913_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrame_t_0913 winCameraVideoStreamFrame_t_0913; +extern void struct_CameraVideoStreamFrame_t_0913_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrame_t_0913_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_0913 winCompositor_FrameTiming_0913; +extern void struct_Compositor_FrameTiming_0913_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_0913_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0913 winRenderModel_TextureMap_t_0913; +extern void struct_RenderModel_TextureMap_t_0913_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0913_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0913 *struct_RenderModel_TextureMap_t_0913_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0913_unwrap(winRenderModel_TextureMap_t_0913 *w); typedef struct winRenderModel_t_0913 winRenderModel_t_0913; +extern void struct_RenderModel_t_0913_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0913_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0913 *struct_RenderModel_t_0913_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0913_unwrap(winRenderModel_t_0913 *w); typedef struct winVREvent_t_0912 winVREvent_t_0912; extern void struct_VREvent_t_0912_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_0912 winVRControllerState001_t_0912; extern void struct_VRControllerState001_t_0912_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0912_win_to_lin(void *w, void *l); +typedef struct winCameraVideoStreamFrame_t_0912 winCameraVideoStreamFrame_t_0912; +extern void struct_CameraVideoStreamFrame_t_0912_lin_to_win(void *l, void *w); +extern void struct_CameraVideoStreamFrame_t_0912_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_0912 winCompositor_FrameTiming_0912; +extern void struct_Compositor_FrameTiming_0912_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_0912_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_0912 winRenderModel_TextureMap_t_0912; +extern void struct_RenderModel_TextureMap_t_0912_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0912_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0912 *struct_RenderModel_TextureMap_t_0912_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0912_unwrap(winRenderModel_TextureMap_t_0912 *w); typedef struct winRenderModel_t_0912 winRenderModel_t_0912; +extern void struct_RenderModel_t_0912_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0912_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0912 *struct_RenderModel_t_0912_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0912_unwrap(winRenderModel_t_0912 *w); typedef struct winRenderModel_TextureMap_t_0910 winRenderModel_TextureMap_t_0910; +extern void struct_RenderModel_TextureMap_t_0910_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_0910_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_0910 *struct_RenderModel_TextureMap_t_0910_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_0910_unwrap(winRenderModel_TextureMap_t_0910 *w); typedef struct winRenderModel_t_0910 winRenderModel_t_0910; +extern void struct_RenderModel_t_0910_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_0910_win_to_lin(void *w, void *l); extern struct winRenderModel_t_0910 *struct_RenderModel_t_0910_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_0910_unwrap(winRenderModel_t_0910 *w); typedef struct winVREvent_t_0910 winVREvent_t_0910; extern void struct_VREvent_t_0910_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_0910 winVRControllerState001_t_0910; extern void struct_VRControllerState001_t_0910_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_0910_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_0910 winCompositor_FrameTiming_0910; +extern void struct_Compositor_FrameTiming_0910_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_0910_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_099 winRenderModel_TextureMap_t_099; +extern void struct_RenderModel_TextureMap_t_099_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_099_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_099 *struct_RenderModel_TextureMap_t_099_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_099_unwrap(winRenderModel_TextureMap_t_099 *w); typedef struct winRenderModel_t_099 winRenderModel_t_099; +extern void struct_RenderModel_t_099_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_099_win_to_lin(void *w, void *l); extern struct winRenderModel_t_099 *struct_RenderModel_t_099_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_099_unwrap(winRenderModel_t_099 *w); typedef struct winVREvent_t_099 winVREvent_t_099; extern void struct_VREvent_t_099_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_099 winVRControllerState001_t_099; extern void struct_VRControllerState001_t_099_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_099_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_099 winCompositor_FrameTiming_099; +extern void struct_Compositor_FrameTiming_099_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_099_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_098 winRenderModel_TextureMap_t_098; +extern void struct_RenderModel_TextureMap_t_098_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_098_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_098 *struct_RenderModel_TextureMap_t_098_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_098_unwrap(winRenderModel_TextureMap_t_098 *w); typedef struct winRenderModel_t_098 winRenderModel_t_098; +extern void struct_RenderModel_t_098_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_098_win_to_lin(void *w, void *l); extern struct winRenderModel_t_098 *struct_RenderModel_t_098_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_098_unwrap(winRenderModel_t_098 *w); typedef struct winVREvent_t_098 winVREvent_t_098; extern void struct_VREvent_t_098_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_098 winVRControllerState001_t_098; extern void struct_VRControllerState001_t_098_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_098_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_098 winCompositor_FrameTiming_098; +extern void struct_Compositor_FrameTiming_098_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_098_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_097 winRenderModel_TextureMap_t_097; +extern void struct_RenderModel_TextureMap_t_097_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_097_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_097 *struct_RenderModel_TextureMap_t_097_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_097_unwrap(winRenderModel_TextureMap_t_097 *w); typedef struct winRenderModel_t_097 winRenderModel_t_097; +extern void struct_RenderModel_t_097_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_097_win_to_lin(void *w, void *l); extern struct winRenderModel_t_097 *struct_RenderModel_t_097_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_097_unwrap(winRenderModel_t_097 *w); typedef struct winVREvent_t_097 winVREvent_t_097; extern void struct_VREvent_t_097_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_097 winVRControllerState001_t_097; extern void struct_VRControllerState001_t_097_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_097_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_097 winCompositor_FrameTiming_097; +extern void struct_Compositor_FrameTiming_097_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_097_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_096 winRenderModel_TextureMap_t_096; +extern void struct_RenderModel_TextureMap_t_096_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_096_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_096 *struct_RenderModel_TextureMap_t_096_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_096_unwrap(winRenderModel_TextureMap_t_096 *w); typedef struct winRenderModel_t_096 winRenderModel_t_096; +extern void struct_RenderModel_t_096_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_096_win_to_lin(void *w, void *l); extern struct winRenderModel_t_096 *struct_RenderModel_t_096_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_096_unwrap(winRenderModel_t_096 *w); typedef struct winVREvent_t_096 winVREvent_t_096; extern void struct_VREvent_t_096_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_096 winVRControllerState001_t_096; extern void struct_VRControllerState001_t_096_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_096_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_096 winCompositor_FrameTiming_096; +extern void struct_Compositor_FrameTiming_096_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_096_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_094 winRenderModel_TextureMap_t_094; +extern void struct_RenderModel_TextureMap_t_094_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_094_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_094 *struct_RenderModel_TextureMap_t_094_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_094_unwrap(winRenderModel_TextureMap_t_094 *w); typedef struct winRenderModel_t_094 winRenderModel_t_094; +extern void struct_RenderModel_t_094_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_094_win_to_lin(void *w, void *l); extern struct winRenderModel_t_094 *struct_RenderModel_t_094_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_094_unwrap(winRenderModel_t_094 *w); typedef struct winVREvent_t_094 winVREvent_t_094; extern void struct_VREvent_t_094_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_094 winVRControllerState001_t_094; extern void struct_VRControllerState001_t_094_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_094_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_094 winCompositor_FrameTiming_094; +extern void struct_Compositor_FrameTiming_094_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_094_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_093 winRenderModel_TextureMap_t_093; +extern void struct_RenderModel_TextureMap_t_093_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_093_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_093 *struct_RenderModel_TextureMap_t_093_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_093_unwrap(winRenderModel_TextureMap_t_093 *w); typedef struct winRenderModel_t_093 winRenderModel_t_093; +extern void struct_RenderModel_t_093_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_093_win_to_lin(void *w, void *l); extern struct winRenderModel_t_093 *struct_RenderModel_t_093_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_093_unwrap(winRenderModel_t_093 *w); typedef struct winVREvent_t_093 winVREvent_t_093; extern void struct_VREvent_t_093_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_093 winVRControllerState001_t_093; extern void struct_VRControllerState001_t_093_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_093_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_093 winCompositor_FrameTiming_093; +extern void struct_Compositor_FrameTiming_093_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_093_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_092 winRenderModel_TextureMap_t_092; +extern void struct_RenderModel_TextureMap_t_092_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_092_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_092 *struct_RenderModel_TextureMap_t_092_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_092_unwrap(winRenderModel_TextureMap_t_092 *w); typedef struct winRenderModel_t_092 winRenderModel_t_092; +extern void struct_RenderModel_t_092_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_092_win_to_lin(void *w, void *l); extern struct winRenderModel_t_092 *struct_RenderModel_t_092_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_092_unwrap(winRenderModel_t_092 *w); typedef struct winVREvent_t_092 winVREvent_t_092; extern void struct_VREvent_t_092_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_092 winVRControllerState001_t_092; extern void struct_VRControllerState001_t_092_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_092_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_092 winCompositor_FrameTiming_092; +extern void struct_Compositor_FrameTiming_092_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_092_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_091 winRenderModel_TextureMap_t_091; +extern void struct_RenderModel_TextureMap_t_091_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_091_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_091 *struct_RenderModel_TextureMap_t_091_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_091_unwrap(winRenderModel_TextureMap_t_091 *w); typedef struct winRenderModel_t_091 winRenderModel_t_091; +extern void struct_RenderModel_t_091_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_091_win_to_lin(void *w, void *l); extern struct winRenderModel_t_091 *struct_RenderModel_t_091_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_091_unwrap(winRenderModel_t_091 *w); typedef struct winVREvent_t_091 winVREvent_t_091; extern void struct_VREvent_t_091_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_091 winVRControllerState001_t_091; extern void struct_VRControllerState001_t_091_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_091_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_091 winCompositor_FrameTiming_091; +extern void struct_Compositor_FrameTiming_091_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_091_win_to_lin(void *w, void *l); typedef struct winRenderModel_TextureMap_t_090 winRenderModel_TextureMap_t_090; +extern void struct_RenderModel_TextureMap_t_090_lin_to_win(void *l, void *w); +extern void struct_RenderModel_TextureMap_t_090_win_to_lin(void *w, void *l); extern struct winRenderModel_TextureMap_t_090 *struct_RenderModel_TextureMap_t_090_wrap(void *l); extern RenderModel_TextureMap_t *struct_RenderModel_TextureMap_t_090_unwrap(winRenderModel_TextureMap_t_090 *w); typedef struct winRenderModel_t_090 winRenderModel_t_090; +extern void struct_RenderModel_t_090_lin_to_win(void *l, void *w); +extern void struct_RenderModel_t_090_win_to_lin(void *w, void *l); extern struct winRenderModel_t_090 *struct_RenderModel_t_090_wrap(void *l); extern RenderModel_t *struct_RenderModel_t_090_unwrap(winRenderModel_t_090 *w); typedef struct winVREvent_t_090 winVREvent_t_090; extern void struct_VREvent_t_090_lin_to_win(void *l, void *w); typedef struct winVRControllerState001_t_090 winVRControllerState001_t_090; extern void struct_VRControllerState001_t_090_lin_to_win(void *l, void *w); +extern void struct_VRControllerState001_t_090_win_to_lin(void *w, void *l); +typedef struct winCompositor_FrameTiming_090 winCompositor_FrameTiming_090; +extern void struct_Compositor_FrameTiming_090_lin_to_win(void *l, void *w); +extern void struct_Compositor_FrameTiming_090_win_to_lin(void *w, void *l); diff --git a/vrclient_x64/vrclient_x64/struct_converters_090.cpp b/vrclient_x64/vrclient_x64/struct_converters_090.cpp index 39ee5bcc..069f445e 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_090.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_090.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_090 { } __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(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; +} + struct winRenderModel_TextureMap_t_090 *struct_RenderModel_TextureMap_t_090_wrap(void *l) { struct winRenderModel_TextureMap_t_090 *win = (struct winRenderModel_TextureMap_t_090 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_090 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_090 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_090_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_090 *struct_RenderModel_t_090_wrap(void *l) { struct winRenderModel_t_090 *win = (struct winRenderModel_t_090 *)malloc(sizeof(*win)); @@ -106,5 +148,50 @@ void struct_VRControllerState001_t_090_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_090_win_to_lin(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__ ((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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_090 *win = (struct winCompositor_FrameTiming_090 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + lin->frameStart = win->frameStart; + lin->frameVSync = win->frameVSync; + lin->droppedFrames = win->droppedFrames; + lin->frameIndex = win->frameIndex; + lin->pose = win->pose; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_091.cpp b/vrclient_x64/vrclient_x64/struct_converters_091.cpp index 2d2f02f1..157d3cb5 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_091.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_091.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_091 { } __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(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; +} + struct winRenderModel_TextureMap_t_091 *struct_RenderModel_TextureMap_t_091_wrap(void *l) { struct winRenderModel_TextureMap_t_091 *win = (struct winRenderModel_TextureMap_t_091 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_091 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_091 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_091_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_091 *struct_RenderModel_t_091_wrap(void *l) { struct winRenderModel_t_091 *win = (struct winRenderModel_t_091 *)malloc(sizeof(*win)); @@ -106,5 +148,50 @@ void struct_VRControllerState001_t_091_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_091_win_to_lin(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__ ((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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_091 *win = (struct winCompositor_FrameTiming_091 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + lin->frameStart = win->frameStart; + lin->frameVSync = win->frameVSync; + lin->droppedFrames = win->droppedFrames; + lin->frameIndex = win->frameIndex; + lin->pose = win->pose; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_0910.cpp b/vrclient_x64/vrclient_x64/struct_converters_0910.cpp index f247a2b2..b75679a5 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0910.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0910.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_0910 { } __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(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; +} + struct winRenderModel_TextureMap_t_0910 *struct_RenderModel_TextureMap_t_0910_wrap(void *l) { struct winRenderModel_TextureMap_t_0910 *win = (struct winRenderModel_TextureMap_t_0910 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_0910 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_0910 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_0910_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_0910 *struct_RenderModel_t_0910_wrap(void *l) { struct winRenderModel_t_0910 *win = (struct winRenderModel_t_0910 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_0910_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0910_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_0910 *win = (struct winCompositor_FrameTiming_0910 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_0912.cpp b/vrclient_x64/vrclient_x64/struct_converters_0912.cpp index d04532c0..48e94aad 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0912.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0912.cpp @@ -44,6 +44,140 @@ void struct_VRControllerState001_t_0912_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0912_win_to_lin(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; + 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(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_0912 *win = (struct winCompositor_FrameTiming_0912 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; @@ -54,6 +188,24 @@ struct winRenderModel_TextureMap_t_0912 { } __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(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; +} + struct winRenderModel_TextureMap_t_0912 *struct_RenderModel_TextureMap_t_0912_wrap(void *l) { struct winRenderModel_TextureMap_t_0912 *win = (struct winRenderModel_TextureMap_t_0912 *)malloc(sizeof(*win)); @@ -84,6 +236,28 @@ struct winRenderModel_t_0912 { } __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(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; +} + struct winRenderModel_t_0912 *struct_RenderModel_t_0912_wrap(void *l) { struct winRenderModel_t_0912 *win = (struct winRenderModel_t_0912 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0913.cpp b/vrclient_x64/vrclient_x64/struct_converters_0913.cpp index 20555f3a..84e2f321 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0913.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0913.cpp @@ -44,6 +44,143 @@ void struct_VRControllerState001_t_0913_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0913_win_to_lin(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; + 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(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_0913 *win = (struct winCompositor_FrameTiming_0913 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; @@ -54,6 +191,24 @@ struct winRenderModel_TextureMap_t_0913 { } __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(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; +} + struct winRenderModel_TextureMap_t_0913 *struct_RenderModel_TextureMap_t_0913_wrap(void *l) { struct winRenderModel_TextureMap_t_0913 *win = (struct winRenderModel_TextureMap_t_0913 *)malloc(sizeof(*win)); @@ -84,6 +239,28 @@ struct winRenderModel_t_0913 { } __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(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; +} + struct winRenderModel_t_0913 *struct_RenderModel_t_0913_wrap(void *l) { struct winRenderModel_t_0913 *win = (struct winRenderModel_t_0913 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0914.cpp b/vrclient_x64/vrclient_x64/struct_converters_0914.cpp index 5c9e33a6..3edce5b5 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0914.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0914.cpp @@ -44,6 +44,158 @@ void struct_VRControllerState001_t_0914_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0914_win_to_lin(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; + 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(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_0914 *win = (struct winCompositor_FrameTiming_0914 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; @@ -54,6 +206,24 @@ struct winRenderModel_TextureMap_t_0914 { } __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(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; +} + struct winRenderModel_TextureMap_t_0914 *struct_RenderModel_TextureMap_t_0914_wrap(void *l) { struct winRenderModel_TextureMap_t_0914 *win = (struct winRenderModel_TextureMap_t_0914 *)malloc(sizeof(*win)); @@ -84,6 +254,28 @@ struct winRenderModel_t_0914 { } __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(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; +} + struct winRenderModel_t_0914 *struct_RenderModel_t_0914_wrap(void *l) { struct winRenderModel_t_0914 *win = (struct winRenderModel_t_0914 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0915.cpp b/vrclient_x64/vrclient_x64/struct_converters_0915.cpp index 814c9d52..6938a131 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0915.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0915.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0915_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0915_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0915_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0915_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0915 { } __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(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; +} + struct winRenderModel_TextureMap_t_0915 *struct_RenderModel_TextureMap_t_0915_wrap(void *l) { struct winRenderModel_TextureMap_t_0915 *win = (struct winRenderModel_TextureMap_t_0915 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0915 { } __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(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; +} + struct winRenderModel_t_0915 *struct_RenderModel_t_0915_wrap(void *l) { struct winRenderModel_t_0915 *win = (struct winRenderModel_t_0915 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0916.cpp b/vrclient_x64/vrclient_x64/struct_converters_0916.cpp index be04f8a6..62ef0dac 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0916.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0916.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0916_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0916_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0916_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0916_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0916 { } __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(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; +} + struct winRenderModel_TextureMap_t_0916 *struct_RenderModel_TextureMap_t_0916_wrap(void *l) { struct winRenderModel_TextureMap_t_0916 *win = (struct winRenderModel_TextureMap_t_0916 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0916 { } __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(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; +} + struct winRenderModel_t_0916 *struct_RenderModel_t_0916_wrap(void *l) { struct winRenderModel_t_0916 *win = (struct winRenderModel_t_0916 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0917.cpp b/vrclient_x64/vrclient_x64/struct_converters_0917.cpp index da93e2ac..78ccdee8 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0917.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0917.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0917_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0917_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0917_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0917_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0917 { } __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(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; +} + struct winRenderModel_TextureMap_t_0917 *struct_RenderModel_TextureMap_t_0917_wrap(void *l) { struct winRenderModel_TextureMap_t_0917 *win = (struct winRenderModel_TextureMap_t_0917 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0917 { } __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(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; +} + struct winRenderModel_t_0917 *struct_RenderModel_t_0917_wrap(void *l) { struct winRenderModel_t_0917 *win = (struct winRenderModel_t_0917 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0918.cpp b/vrclient_x64/vrclient_x64/struct_converters_0918.cpp index f8e3d455..af1824b0 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0918.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0918.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0918_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0918_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0918_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0918_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0918 { } __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(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; +} + struct winRenderModel_TextureMap_t_0918 *struct_RenderModel_TextureMap_t_0918_wrap(void *l) { struct winRenderModel_TextureMap_t_0918 *win = (struct winRenderModel_TextureMap_t_0918 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0918 { } __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(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; +} + struct winRenderModel_t_0918 *struct_RenderModel_t_0918_wrap(void *l) { struct winRenderModel_t_0918 *win = (struct winRenderModel_t_0918 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_0919.cpp b/vrclient_x64/vrclient_x64/struct_converters_0919.cpp index e18fccd1..0c99d284 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0919.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0919.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0919_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0919_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0919_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0919_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0919 { } __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(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; +} + struct winRenderModel_TextureMap_t_0919 *struct_RenderModel_TextureMap_t_0919_wrap(void *l) { struct winRenderModel_TextureMap_t_0919 *win = (struct winRenderModel_TextureMap_t_0919 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0919 { } __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(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; +} + struct winRenderModel_t_0919 *struct_RenderModel_t_0919_wrap(void *l) { struct winRenderModel_t_0919 *win = (struct winRenderModel_t_0919 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_092.cpp b/vrclient_x64/vrclient_x64/struct_converters_092.cpp index dad1a30e..7faab9be 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_092.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_092.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_092 { } __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(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; +} + struct winRenderModel_TextureMap_t_092 *struct_RenderModel_TextureMap_t_092_wrap(void *l) { struct winRenderModel_TextureMap_t_092 *win = (struct winRenderModel_TextureMap_t_092 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_092 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_092 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_092_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_092 *struct_RenderModel_t_092_wrap(void *l) { struct winRenderModel_t_092 *win = (struct winRenderModel_t_092 *)malloc(sizeof(*win)); @@ -106,5 +148,50 @@ void struct_VRControllerState001_t_092_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_092_win_to_lin(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__ ((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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_092 *win = (struct winCompositor_FrameTiming_092 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + lin->frameStart = win->frameStart; + lin->frameVSync = win->frameVSync; + lin->droppedFrames = win->droppedFrames; + lin->frameIndex = win->frameIndex; + lin->pose = win->pose; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_0920.cpp b/vrclient_x64/vrclient_x64/struct_converters_0920.cpp index e40fd246..01fdb6dd 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_0920.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_0920.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_0920_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_0920_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_0920_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_0920_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_0920 { } __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(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; +} + struct winRenderModel_TextureMap_t_0920 *struct_RenderModel_TextureMap_t_0920_wrap(void *l) { struct winRenderModel_TextureMap_t_0920 *win = (struct winRenderModel_TextureMap_t_0920 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_0920 { } __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(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; +} + struct winRenderModel_t_0920 *struct_RenderModel_t_0920_wrap(void *l) { struct winRenderModel_t_0920 *win = (struct winRenderModel_t_0920 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_093.cpp b/vrclient_x64/vrclient_x64/struct_converters_093.cpp index 81f19d17..8d193978 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_093.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_093.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_093 { } __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(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; +} + struct winRenderModel_TextureMap_t_093 *struct_RenderModel_TextureMap_t_093_wrap(void *l) { struct winRenderModel_TextureMap_t_093 *win = (struct winRenderModel_TextureMap_t_093 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_093 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_093 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_093_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_093 *struct_RenderModel_t_093_wrap(void *l) { struct winRenderModel_t_093 *win = (struct winRenderModel_t_093 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_093_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_093_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_093 *win = (struct winCompositor_FrameTiming_093 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_094.cpp b/vrclient_x64/vrclient_x64/struct_converters_094.cpp index 2455df5a..3b74fea4 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_094.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_094.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_094 { } __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(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; +} + struct winRenderModel_TextureMap_t_094 *struct_RenderModel_TextureMap_t_094_wrap(void *l) { struct winRenderModel_TextureMap_t_094 *win = (struct winRenderModel_TextureMap_t_094 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_094 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_094 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_094_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_094 *struct_RenderModel_t_094_wrap(void *l) { struct winRenderModel_t_094 *win = (struct winRenderModel_t_094 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_094_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_094_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_094 *win = (struct winCompositor_FrameTiming_094 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_096.cpp b/vrclient_x64/vrclient_x64/struct_converters_096.cpp index 7e8d6890..5764b08c 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_096.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_096.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_096 { } __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(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; +} + struct winRenderModel_TextureMap_t_096 *struct_RenderModel_TextureMap_t_096_wrap(void *l) { struct winRenderModel_TextureMap_t_096 *win = (struct winRenderModel_TextureMap_t_096 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_096 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_096 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_096_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_096 *struct_RenderModel_t_096_wrap(void *l) { struct winRenderModel_t_096 *win = (struct winRenderModel_t_096 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_096_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_096_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_096 *win = (struct winCompositor_FrameTiming_096 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_097.cpp b/vrclient_x64/vrclient_x64/struct_converters_097.cpp index cfca96b8..db2c0029 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_097.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_097.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_097 { } __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(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; +} + struct winRenderModel_TextureMap_t_097 *struct_RenderModel_TextureMap_t_097_wrap(void *l) { struct winRenderModel_TextureMap_t_097 *win = (struct winRenderModel_TextureMap_t_097 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_097 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_097 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_097_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_097 *struct_RenderModel_t_097_wrap(void *l) { struct winRenderModel_t_097 *win = (struct winRenderModel_t_097 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_097_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_097_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_097 *win = (struct winCompositor_FrameTiming_097 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_098.cpp b/vrclient_x64/vrclient_x64/struct_converters_098.cpp index cc3c0565..bfdba392 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_098.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_098.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_098 { } __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(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; +} + struct winRenderModel_TextureMap_t_098 *struct_RenderModel_TextureMap_t_098_wrap(void *l) { struct winRenderModel_TextureMap_t_098 *win = (struct winRenderModel_TextureMap_t_098 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_098 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_098 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_098_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_098 *struct_RenderModel_t_098_wrap(void *l) { struct winRenderModel_t_098 *win = (struct winRenderModel_t_098 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_098_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_098_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_098 *win = (struct winCompositor_FrameTiming_098 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_099.cpp b/vrclient_x64/vrclient_x64/struct_converters_099.cpp index 63232cd5..69d9770e 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_099.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_099.cpp @@ -16,6 +16,24 @@ struct winRenderModel_TextureMap_t_099 { } __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(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; +} + struct winRenderModel_TextureMap_t_099 *struct_RenderModel_TextureMap_t_099_wrap(void *l) { struct winRenderModel_TextureMap_t_099 *win = (struct winRenderModel_TextureMap_t_099 *)malloc(sizeof(*win)); @@ -41,12 +59,36 @@ struct winRenderModel_t_099 { uint32_t unVertexCount; const uint16_t * rIndexData; uint32_t unTriangleCount; - vr::RenderModel_TextureMap_t diffuseTexture __attribute__((aligned(4))); + winRenderModel_TextureMap_t_099 diffuseTexture; RenderModel_t *linux_side; } __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; + win->diffuseTexture = lin->diffuseTexture; +} + +void struct_RenderModel_t_099_win_to_lin(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; + lin->diffuseTexture = win->diffuseTexture; +} + struct winRenderModel_t_099 *struct_RenderModel_t_099_wrap(void *l) { struct winRenderModel_t_099 *win = (struct winRenderModel_t_099 *)malloc(sizeof(*win)); @@ -106,5 +148,74 @@ void struct_VRControllerState001_t_099_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_099_win_to_lin(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; + 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 = lin->size; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_099 *win = (struct winCompositor_FrameTiming_099 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->size = win->size; + 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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_100.cpp b/vrclient_x64/vrclient_x64/struct_converters_100.cpp index 0544398b..ed23619f 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_100.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_100.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_100_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_100_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_100_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_100_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_100 { } __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(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; +} + struct winRenderModel_TextureMap_t_100 *struct_RenderModel_TextureMap_t_100_wrap(void *l) { struct winRenderModel_TextureMap_t_100 *win = (struct winRenderModel_TextureMap_t_100 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_100 { } __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(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; +} + struct winRenderModel_t_100 *struct_RenderModel_t_100_wrap(void *l) { struct winRenderModel_t_100 *win = (struct winRenderModel_t_100 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_101.cpp b/vrclient_x64/vrclient_x64/struct_converters_101.cpp index 7e13af80..e3e8e543 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_101.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_101.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_101_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_101_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_101_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_101_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_101 { } __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(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; +} + struct winRenderModel_TextureMap_t_101 *struct_RenderModel_TextureMap_t_101_wrap(void *l) { struct winRenderModel_TextureMap_t_101 *win = (struct winRenderModel_TextureMap_t_101 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_101 { } __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(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; +} + struct winRenderModel_t_101 *struct_RenderModel_t_101_wrap(void *l) { struct winRenderModel_t_101 *win = (struct winRenderModel_t_101 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1010.cpp b/vrclient_x64/vrclient_x64/struct_converters_1010.cpp index e91e107e..48dc4e19 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1010.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1010.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1010_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1010_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1010_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1010_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1010 { } __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(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; +} + struct winRenderModel_TextureMap_t_1010 *struct_RenderModel_TextureMap_t_1010_wrap(void *l) { struct winRenderModel_TextureMap_t_1010 *win = (struct winRenderModel_TextureMap_t_1010 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1010 { } __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(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; +} + struct winRenderModel_t_1010 *struct_RenderModel_t_1010_wrap(void *l) { struct winRenderModel_t_1010 *win = (struct winRenderModel_t_1010 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1011.cpp b/vrclient_x64/vrclient_x64/struct_converters_1011.cpp index aa7b220f..710d96a8 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1011.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1011.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1011_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1011_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1011_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1011_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1011 { } __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(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; +} + struct winRenderModel_TextureMap_t_1011 *struct_RenderModel_TextureMap_t_1011_wrap(void *l) { struct winRenderModel_TextureMap_t_1011 *win = (struct winRenderModel_TextureMap_t_1011 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1011 { } __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(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; +} + struct winRenderModel_t_1011 *struct_RenderModel_t_1011_wrap(void *l) { struct winRenderModel_t_1011 *win = (struct winRenderModel_t_1011 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1012.cpp b/vrclient_x64/vrclient_x64/struct_converters_1012.cpp index b3e336b1..b9e5744c 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1012.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1012.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1012_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1012_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1012_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1012_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1012 { } __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(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; +} + struct winRenderModel_TextureMap_t_1012 *struct_RenderModel_TextureMap_t_1012_wrap(void *l) { struct winRenderModel_TextureMap_t_1012 *win = (struct winRenderModel_TextureMap_t_1012 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1012 { } __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(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; +} + struct winRenderModel_t_1012 *struct_RenderModel_t_1012_wrap(void *l) { struct winRenderModel_t_1012 *win = (struct winRenderModel_t_1012 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1013.cpp b/vrclient_x64/vrclient_x64/struct_converters_1013.cpp index 9190648a..82901f27 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1013.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1013.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1013_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1013_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1013_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1013_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1013 { } __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(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; +} + struct winRenderModel_TextureMap_t_1013 *struct_RenderModel_TextureMap_t_1013_wrap(void *l) { struct winRenderModel_TextureMap_t_1013 *win = (struct winRenderModel_TextureMap_t_1013 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1013 { } __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(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; +} + struct winRenderModel_t_1013 *struct_RenderModel_t_1013_wrap(void *l) { struct winRenderModel_t_1013 *win = (struct winRenderModel_t_1013 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1014.cpp b/vrclient_x64/vrclient_x64/struct_converters_1014.cpp index ef84c109..ac21a2e7 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1014.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1014.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1014_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1014_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1014_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1014_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1014 { } __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(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; +} + struct winRenderModel_TextureMap_t_1014 *struct_RenderModel_TextureMap_t_1014_wrap(void *l) { struct winRenderModel_TextureMap_t_1014 *win = (struct winRenderModel_TextureMap_t_1014 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1014 { } __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(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; +} + struct winRenderModel_t_1014 *struct_RenderModel_t_1014_wrap(void *l) { struct winRenderModel_t_1014 *win = (struct winRenderModel_t_1014 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_1015.cpp b/vrclient_x64/vrclient_x64/struct_converters_1015.cpp index 554e6622..3473102e 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1015.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1015.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1015_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1015_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1015_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1015_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1015 { } __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(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; +} + struct winRenderModel_TextureMap_t_1015 *struct_RenderModel_TextureMap_t_1015_wrap(void *l) { struct winRenderModel_TextureMap_t_1015 *win = (struct winRenderModel_TextureMap_t_1015 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1015 { } __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(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; +} + struct winRenderModel_t_1015 *struct_RenderModel_t_1015_wrap(void *l) { struct winRenderModel_t_1015 *win = (struct winRenderModel_t_1015 *)malloc(sizeof(*win)); @@ -104,5 +164,130 @@ struct RenderModel_t *struct_RenderModel_t_1015_unwrap(winRenderModel_t_1015 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1016.cpp b/vrclient_x64/vrclient_x64/struct_converters_1016.cpp index 196fd9a4..cd219650 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1016.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1016.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1016_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1016_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_1016_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1016_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_1016 { } __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(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; +} + struct winRenderModel_TextureMap_t_1016 *struct_RenderModel_TextureMap_t_1016_wrap(void *l) { struct winRenderModel_TextureMap_t_1016 *win = (struct winRenderModel_TextureMap_t_1016 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_1016 { } __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(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; +} + struct winRenderModel_t_1016 *struct_RenderModel_t_1016_wrap(void *l) { struct winRenderModel_t_1016 *win = (struct winRenderModel_t_1016 *)malloc(sizeof(*win)); @@ -104,5 +164,133 @@ struct RenderModel_t *struct_RenderModel_t_1016_unwrap(winRenderModel_t_1016 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1017.cpp b/vrclient_x64/vrclient_x64/struct_converters_1017.cpp index a57c7687..832914da 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1017.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1017.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1017_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1017_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1017_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1017_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1017 { } __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(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; +} + struct winRenderModel_TextureMap_t_1017 *struct_RenderModel_TextureMap_t_1017_wrap(void *l) { struct winRenderModel_TextureMap_t_1017 *win = (struct winRenderModel_TextureMap_t_1017 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1017 { } __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(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; +} + struct winRenderModel_t_1017 *struct_RenderModel_t_1017_wrap(void *l) { struct winRenderModel_t_1017 *win = (struct winRenderModel_t_1017 *)malloc(sizeof(*win)); @@ -104,5 +202,133 @@ struct RenderModel_t *struct_RenderModel_t_1017_unwrap(winRenderModel_t_1017 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_102.cpp b/vrclient_x64/vrclient_x64/struct_converters_102.cpp index 805fcec1..5b1b79f0 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_102.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_102.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_102_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_102_win_to_lin(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; @@ -44,6 +54,102 @@ void struct_VRControllerState001_t_102_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_102_win_to_lin(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__ ((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 = lin->m_nSize; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_102 *win = (struct winCompositor_FrameTiming_102 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->m_nSize = win->m_nSize; + 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; @@ -54,6 +160,24 @@ struct winRenderModel_TextureMap_t_102 { } __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(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; +} + struct winRenderModel_TextureMap_t_102 *struct_RenderModel_TextureMap_t_102_wrap(void *l) { struct winRenderModel_TextureMap_t_102 *win = (struct winRenderModel_TextureMap_t_102 *)malloc(sizeof(*win)); @@ -84,6 +208,28 @@ struct winRenderModel_t_102 { } __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(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; +} + struct winRenderModel_t_102 *struct_RenderModel_t_102_wrap(void *l) { struct winRenderModel_t_102 *win = (struct winRenderModel_t_102 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_103.cpp b/vrclient_x64/vrclient_x64/struct_converters_103.cpp index 8aefed0e..f4817ca0 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_103.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_103.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_103_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_103_win_to_lin(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; @@ -44,6 +54,102 @@ void struct_VRControllerState001_t_103_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_103_win_to_lin(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__ ((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 = lin->m_nSize; + 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(void *w, void *l) +{ + struct winCompositor_FrameTiming_103 *win = (struct winCompositor_FrameTiming_103 *)w; + Compositor_FrameTiming *lin = (Compositor_FrameTiming *)l; + lin->m_nSize = win->m_nSize; + 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; @@ -54,6 +160,24 @@ struct winRenderModel_TextureMap_t_103 { } __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(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; +} + struct winRenderModel_TextureMap_t_103 *struct_RenderModel_TextureMap_t_103_wrap(void *l) { struct winRenderModel_TextureMap_t_103 *win = (struct winRenderModel_TextureMap_t_103 *)malloc(sizeof(*win)); @@ -84,6 +208,28 @@ struct winRenderModel_t_103 { } __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(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; +} + struct winRenderModel_t_103 *struct_RenderModel_t_103_wrap(void *l) { struct winRenderModel_t_103 *win = (struct winRenderModel_t_103 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_103a.cpp b/vrclient_x64/vrclient_x64/struct_converters_103a.cpp index 41c94160..24987800 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_103a.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_103a.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_103a_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_103a_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_103a_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_103a_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_103a { } __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(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; +} + struct winRenderModel_TextureMap_t_103a *struct_RenderModel_TextureMap_t_103a_wrap(void *l) { struct winRenderModel_TextureMap_t_103a *win = (struct winRenderModel_TextureMap_t_103a *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_103a { } __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(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; +} + struct winRenderModel_t_103a *struct_RenderModel_t_103a_wrap(void *l) { struct winRenderModel_t_103a *win = (struct winRenderModel_t_103a *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_104.cpp b/vrclient_x64/vrclient_x64/struct_converters_104.cpp index b6a22d82..3d0009ba 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_104.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_104.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_104_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_104_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_104_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_104_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_104 { } __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(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; +} + struct winRenderModel_TextureMap_t_104 *struct_RenderModel_TextureMap_t_104_wrap(void *l) { struct winRenderModel_TextureMap_t_104 *win = (struct winRenderModel_TextureMap_t_104 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_104 { } __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(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; +} + struct winRenderModel_t_104 *struct_RenderModel_t_104_wrap(void *l) { struct winRenderModel_t_104 *win = (struct winRenderModel_t_104 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_105.cpp b/vrclient_x64/vrclient_x64/struct_converters_105.cpp index 0e8f2c0a..491343e0 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_105.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_105.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_105_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_105_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_105_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_105_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_105 { } __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(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; +} + struct winRenderModel_TextureMap_t_105 *struct_RenderModel_TextureMap_t_105_wrap(void *l) { struct winRenderModel_TextureMap_t_105 *win = (struct winRenderModel_TextureMap_t_105 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_105 { } __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(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; +} + struct winRenderModel_t_105 *struct_RenderModel_t_105_wrap(void *l) { struct winRenderModel_t_105 *win = (struct winRenderModel_t_105 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_106.cpp b/vrclient_x64/vrclient_x64/struct_converters_106.cpp index be5d0fa2..cd42ddc3 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_106.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_106.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_106_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_106_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_106_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_106_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_106 { } __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(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; +} + struct winRenderModel_TextureMap_t_106 *struct_RenderModel_TextureMap_t_106_wrap(void *l) { struct winRenderModel_TextureMap_t_106 *win = (struct winRenderModel_TextureMap_t_106 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_106 { } __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(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; +} + struct winRenderModel_t_106 *struct_RenderModel_t_106_wrap(void *l) { struct winRenderModel_t_106 *win = (struct winRenderModel_t_106 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_107.cpp b/vrclient_x64/vrclient_x64/struct_converters_107.cpp index 2cc8b49c..aa71e58a 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_107.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_107.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_107_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_107_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_107_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_107_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_107 { } __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(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; +} + struct winRenderModel_TextureMap_t_107 *struct_RenderModel_TextureMap_t_107_wrap(void *l) { struct winRenderModel_TextureMap_t_107 *win = (struct winRenderModel_TextureMap_t_107 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_107 { } __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(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; +} + struct winRenderModel_t_107 *struct_RenderModel_t_107_wrap(void *l) { struct winRenderModel_t_107 *win = (struct winRenderModel_t_107 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_108.cpp b/vrclient_x64/vrclient_x64/struct_converters_108.cpp index b8da69a7..ca0bb7d0 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_108.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_108.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_108_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_108_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_108_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_108_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_108 { } __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(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; +} + struct winRenderModel_TextureMap_t_108 *struct_RenderModel_TextureMap_t_108_wrap(void *l) { struct winRenderModel_TextureMap_t_108 *win = (struct winRenderModel_TextureMap_t_108 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_108 { } __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(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; +} + struct winRenderModel_t_108 *struct_RenderModel_t_108_wrap(void *l) { struct winRenderModel_t_108 *win = (struct winRenderModel_t_108 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_109.cpp b/vrclient_x64/vrclient_x64/struct_converters_109.cpp index 546214fe..780505cb 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_109.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_109.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_109_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_109_win_to_lin(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; @@ -44,6 +54,16 @@ void struct_VRControllerState001_t_109_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_109_win_to_lin(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; @@ -54,6 +74,24 @@ struct winRenderModel_TextureMap_t_109 { } __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(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; +} + struct winRenderModel_TextureMap_t_109 *struct_RenderModel_TextureMap_t_109_wrap(void *l) { struct winRenderModel_TextureMap_t_109 *win = (struct winRenderModel_TextureMap_t_109 *)malloc(sizeof(*win)); @@ -84,6 +122,28 @@ struct winRenderModel_t_109 { } __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(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; +} + struct winRenderModel_t_109 *struct_RenderModel_t_109_wrap(void *l) { struct winRenderModel_t_109 *win = (struct winRenderModel_t_109 *)malloc(sizeof(*win)); diff --git a/vrclient_x64/vrclient_x64/struct_converters_113b.cpp b/vrclient_x64/vrclient_x64/struct_converters_113b.cpp index 3ca1c475..2ed12d48 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_113b.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_113b.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_113b_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_113b_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_113b_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_113b_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_113b { } __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(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; +} + struct winRenderModel_TextureMap_t_113b *struct_RenderModel_TextureMap_t_113b_wrap(void *l) { struct winRenderModel_TextureMap_t_113b *win = (struct winRenderModel_TextureMap_t_113b *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_113b { } __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(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; +} + struct winRenderModel_t_113b *struct_RenderModel_t_113b_wrap(void *l) { struct winRenderModel_t_113b *win = (struct winRenderModel_t_113b *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_113b_unwrap(winRenderModel_t_113b *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1210.cpp b/vrclient_x64/vrclient_x64/struct_converters_1210.cpp index d47782aa..bcacb86b 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1210.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1210.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1210_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1210_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1210_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1210_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1210 { } __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(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; +} + struct winRenderModel_TextureMap_t_1210 *struct_RenderModel_TextureMap_t_1210_wrap(void *l) { struct winRenderModel_TextureMap_t_1210 *win = (struct winRenderModel_TextureMap_t_1210 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1210 { } __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(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; +} + struct winRenderModel_t_1210 *struct_RenderModel_t_1210_wrap(void *l) { struct winRenderModel_t_1210 *win = (struct winRenderModel_t_1210 *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_1210_unwrap(winRenderModel_t_1210 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1322.cpp b/vrclient_x64/vrclient_x64/struct_converters_1322.cpp index d729557e..520f9e95 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1322.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1322.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1322_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1322_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1322_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1322_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1322 { } __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(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; +} + struct winRenderModel_TextureMap_t_1322 *struct_RenderModel_TextureMap_t_1322_wrap(void *l) { struct winRenderModel_TextureMap_t_1322 *win = (struct winRenderModel_TextureMap_t_1322 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1322 { } __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(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; +} + struct winRenderModel_t_1322 *struct_RenderModel_t_1322_wrap(void *l) { struct winRenderModel_t_1322 *win = (struct winRenderModel_t_1322 *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_1322_unwrap(winRenderModel_t_1322 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1418.cpp b/vrclient_x64/vrclient_x64/struct_converters_1418.cpp index c1a7788d..044ffe28 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1418.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1418.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1418_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1418_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1418_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1418_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1418 { } __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(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; +} + struct winRenderModel_TextureMap_t_1418 *struct_RenderModel_TextureMap_t_1418_wrap(void *l) { struct winRenderModel_TextureMap_t_1418 *win = (struct winRenderModel_TextureMap_t_1418 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1418 { } __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(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; +} + struct winRenderModel_t_1418 *struct_RenderModel_t_1418_wrap(void *l) { struct winRenderModel_t_1418 *win = (struct winRenderModel_t_1418 *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_1418_unwrap(winRenderModel_t_1418 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1517.cpp b/vrclient_x64/vrclient_x64/struct_converters_1517.cpp index 21dad0f3..7414efd3 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1517.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1517.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1517_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1517_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1517_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1517_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1517 { } __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(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; +} + struct winRenderModel_TextureMap_t_1517 *struct_RenderModel_TextureMap_t_1517_wrap(void *l) { struct winRenderModel_TextureMap_t_1517 *win = (struct winRenderModel_TextureMap_t_1517 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1517 { } __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(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; +} + struct winRenderModel_t_1517 *struct_RenderModel_t_1517_wrap(void *l) { struct winRenderModel_t_1517 *win = (struct winRenderModel_t_1517 *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_1517_unwrap(winRenderModel_t_1517 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + } diff --git a/vrclient_x64/vrclient_x64/struct_converters_1610.cpp b/vrclient_x64/vrclient_x64/struct_converters_1610.cpp index 1e597e4e..bcf8cff4 100644 --- a/vrclient_x64/vrclient_x64/struct_converters_1610.cpp +++ b/vrclient_x64/vrclient_x64/struct_converters_1610.cpp @@ -25,6 +25,16 @@ void struct_VREvent_t_1610_lin_to_win(void *l, void *w) win->data = lin->data; } +void struct_VREvent_t_1610_win_to_lin(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; @@ -44,6 +54,54 @@ void struct_VRControllerState001_t_1610_lin_to_win(void *l, void *w) memcpy(win->rAxis, lin->rAxis, sizeof(win->rAxis)); } +void struct_VRControllerState001_t_1610_win_to_lin(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) +{ + 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(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; @@ -54,6 +112,24 @@ struct winRenderModel_TextureMap_t_1610 { } __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(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; +} + struct winRenderModel_TextureMap_t_1610 *struct_RenderModel_TextureMap_t_1610_wrap(void *l) { struct winRenderModel_TextureMap_t_1610 *win = (struct winRenderModel_TextureMap_t_1610 *)malloc(sizeof(*win)); @@ -84,6 +160,28 @@ struct winRenderModel_t_1610 { } __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(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; +} + struct winRenderModel_t_1610 *struct_RenderModel_t_1610_wrap(void *l) { struct winRenderModel_t_1610 *win = (struct winRenderModel_t_1610 *)malloc(sizeof(*win)); @@ -104,5 +202,130 @@ struct RenderModel_t *struct_RenderModel_t_1610_unwrap(winRenderModel_t_1610 *w) return ret; } +#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) +{ + 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(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) +{ + 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(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) +{ + 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(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) +{ + 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(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; +} + }