2020-03-18 19:50:21 +01:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
|
|
|
|
#include "flatapi.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize, 12)
|
2023-09-23 20:52:28 +02:00
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize, 12)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio, 4)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange, 12)
|
|
|
|
DEFINE_THISCALL_WRAPPER(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange, 12)
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize(struct w_steam_iface *_this, uint32_t nWidth, uint32_t nHeight)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.nWidth = nWidth,
|
|
|
|
.nHeight = nHeight,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize(struct w_steam_iface *_this, uint32_t *pnWidth, uint32_t *pnHeight)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pnWidth = pnWidth,
|
|
|
|
.pnHeight = pnHeight,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-14 16:22:47 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode(struct w_steam_iface *_this, uint32_t eHeadsetViewMode)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.eHeadsetViewMode = eHeadsetViewMode,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t __thiscall winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode(struct w_steam_iface *_this)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped(struct w_steam_iface *_this, int8_t bCropped)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.bCropped = bCropped,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-10-04 22:02:15 +02:00
|
|
|
int8_t __thiscall winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped(struct w_steam_iface *_this)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
float __thiscall winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio(struct w_steam_iface *_this)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio, ¶ms );
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange(struct w_steam_iface *_this, float flStartPct, float flEndPct)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.flStartPct = flStartPct,
|
|
|
|
.flEndPct = flEndPct,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void __thiscall winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange(struct w_steam_iface *_this, float *pStartPct, float *pEndPct)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.pStartPct = pStartPct,
|
|
|
|
.pEndPct = pEndPct,
|
|
|
|
};
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("%p\n", _this);
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange, ¶ms );
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
extern vtable_ptr winIVRHeadsetView_IVRHeadsetView_001_vtable;
|
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
DEFINE_RTTI_DATA0(winIVRHeadsetView_IVRHeadsetView_001, 0, ".?AVIVRHeadsetView@@")
|
|
|
|
|
|
|
|
__ASM_BLOCK_BEGIN(winIVRHeadsetView_IVRHeadsetView_001_vtables)
|
2020-03-18 19:50:21 +01:00
|
|
|
__ASM_VTABLE(winIVRHeadsetView_IVRHeadsetView_001,
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange)
|
|
|
|
VTABLE_ADD_FUNC(winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange)
|
|
|
|
);
|
2023-10-02 20:00:22 +02:00
|
|
|
__ASM_BLOCK_END
|
2020-03-18 19:50:21 +01:00
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRHeadsetView_IVRHeadsetView_001(void *u_iface)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2020-03-18 19:50:21 +01:00
|
|
|
TRACE("-> %p\n", r);
|
|
|
|
r->vtable = &winIVRHeadsetView_IVRHeadsetView_001_vtable;
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2020-03-18 19:50:21 +01:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRHeadsetView_IVRHeadsetView_001(struct w_steam_iface *object)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
|
|
|
TRACE("%p\n", object);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *create_winIVRHeadsetView_IVRHeadsetView_001_FnTable(void *u_iface)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
struct w_steam_iface *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*r));
|
2020-03-18 19:50:21 +01:00
|
|
|
struct thunk *thunks = alloc_thunks(9);
|
|
|
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 9 * sizeof(*vtable));
|
|
|
|
int i;
|
|
|
|
|
|
|
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
|
|
|
init_thunk(&thunks[0], r, winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewSize, 2, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[1], r, winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewSize, 2, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[2], r, winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewMode, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[3], r, winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewMode, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[4], r, winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewCropped, 1, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[5], r, winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewCropped, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[6], r, winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewAspectRatio, 0, FALSE, FALSE);
|
|
|
|
init_thunk(&thunks[7], r, winIVRHeadsetView_IVRHeadsetView_001_SetHeadsetViewBlendRange, 2, TRUE, FALSE);
|
|
|
|
init_thunk(&thunks[8], r, winIVRHeadsetView_IVRHeadsetView_001_GetHeadsetViewBlendRange, 2, FALSE, FALSE);
|
|
|
|
for (i = 0; i < 9; i++)
|
|
|
|
vtable[i] = &thunks[i];
|
2023-09-24 14:50:45 +02:00
|
|
|
r->u_iface = u_iface;
|
2020-03-18 19:50:21 +01:00
|
|
|
r->vtable = (void *)vtable;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2023-09-24 14:50:45 +02:00
|
|
|
void destroy_winIVRHeadsetView_IVRHeadsetView_001_FnTable(struct w_steam_iface *object)
|
2020-03-18 19:50:21 +01:00
|
|
|
{
|
2023-09-24 14:50:45 +02:00
|
|
|
TRACE("%p\n", object);
|
|
|
|
VirtualFree(object->vtable[0], 0, MEM_RELEASE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object->vtable);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2020-03-18 19:50:21 +01:00
|
|
|
}
|
|
|
|
|
2023-10-02 20:00:22 +02:00
|
|
|
void init_winIVRHeadsetView_rtti( char *base )
|
|
|
|
{
|
|
|
|
#ifdef __x86_64__
|
|
|
|
init_winIVRHeadsetView_IVRHeadsetView_001_rtti( base );
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
}
|