mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-04 21:54:42 +01:00
vrclient: Check all structs for conversion
This commit is contained in:
parent
181eb3a68f
commit
8fe55dee47
58 changed files with 5855 additions and 73 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue