2023-09-30 10:48:58 +02:00
|
|
|
#include "unix_private.h"
|
|
|
|
|
2023-11-07 20:56:28 +01:00
|
|
|
#if 0
|
|
|
|
#pragma makedep unix
|
|
|
|
#endif
|
|
|
|
|
2023-09-30 10:48:58 +02:00
|
|
|
/* LoadRenderModel(_Async) / FreeRenderModel */
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_002_LoadRenderModel( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_002_LoadRenderModel_params *params = (struct IVRRenderModels_IVRRenderModels_002_LoadRenderModel_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_002 *iface = (struct u_IVRRenderModels_IVRRenderModels_002 *)params->linux_side;
|
|
|
|
struct render_model *model = params->ppRenderModel ? CONTAINING_RECORD( *params->ppRenderModel, struct render_model, w_0912 ) : NULL;
|
|
|
|
params->_ret = iface->LoadRenderModel( params->pchRenderModelName, params->ppRenderModel ? &model->u_0912 : nullptr );
|
|
|
|
if (params->_ret == 0 && model) model->w_0912 = *model->u_0912;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_002_FreeRenderModel( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_002_FreeRenderModel_params *params = (struct IVRRenderModels_IVRRenderModels_002_FreeRenderModel_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_002 *iface = (struct u_IVRRenderModels_IVRRenderModels_002 *)params->linux_side;
|
|
|
|
struct render_model *model = CONTAINING_RECORD( params->pRenderModel, struct render_model, w_0912 );
|
|
|
|
iface->FreeRenderModel( model->u_0912 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_004_LoadRenderModel_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_004_LoadRenderModel_Async_params *params = (struct IVRRenderModels_IVRRenderModels_004_LoadRenderModel_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_004 *iface = (struct u_IVRRenderModels_IVRRenderModels_004 *)params->linux_side;
|
|
|
|
struct render_model *model = params->ppRenderModel ? CONTAINING_RECORD( *params->ppRenderModel, struct render_model, w_0912 ) : NULL;
|
|
|
|
params->_ret = iface->LoadRenderModel_Async( params->pchRenderModelName, params->ppRenderModel ? &model->u_0912 : nullptr );
|
|
|
|
if (params->_ret == 0 && model) model->w_0912 = *model->u_0912;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_004_FreeRenderModel( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_004_FreeRenderModel_params *params = (struct IVRRenderModels_IVRRenderModels_004_FreeRenderModel_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_004 *iface = (struct u_IVRRenderModels_IVRRenderModels_004 *)params->linux_side;
|
|
|
|
struct render_model *model = CONTAINING_RECORD( params->pRenderModel, struct render_model, w_0912 );
|
|
|
|
iface->FreeRenderModel( model->u_0912 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_005_LoadRenderModel_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_005_LoadRenderModel_Async_params *params = (struct IVRRenderModels_IVRRenderModels_005_LoadRenderModel_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_005 *iface = (struct u_IVRRenderModels_IVRRenderModels_005 *)params->linux_side;
|
|
|
|
struct render_model *model = params->ppRenderModel ? CONTAINING_RECORD( *params->ppRenderModel, struct render_model, w_0912 ) : NULL;
|
|
|
|
params->_ret = iface->LoadRenderModel_Async( params->pchRenderModelName, params->ppRenderModel ? &model->u_0912 : nullptr );
|
|
|
|
if (params->_ret == 0 && model) model->w_0912 = *model->u_0912;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_005_FreeRenderModel( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_005_FreeRenderModel_params *params = (struct IVRRenderModels_IVRRenderModels_005_FreeRenderModel_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_005 *iface = (struct u_IVRRenderModels_IVRRenderModels_005 *)params->linux_side;
|
|
|
|
struct render_model *model = CONTAINING_RECORD( params->pRenderModel, struct render_model, w_0912 );
|
|
|
|
iface->FreeRenderModel( model->u_0912 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_006_LoadRenderModel_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_006_LoadRenderModel_Async_params *params = (struct IVRRenderModels_IVRRenderModels_006_LoadRenderModel_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_006 *iface = (struct u_IVRRenderModels_IVRRenderModels_006 *)params->linux_side;
|
|
|
|
struct render_model *model = params->ppRenderModel ? CONTAINING_RECORD( *params->ppRenderModel, struct render_model, w_0912 ) : NULL;
|
|
|
|
params->_ret = iface->LoadRenderModel_Async( params->pchRenderModelName, params->ppRenderModel ? &model->u_0912 : nullptr );
|
|
|
|
if (params->_ret == 0 && model) model->w_0912 = *model->u_0912;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_006_FreeRenderModel( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_006_FreeRenderModel_params *params = (struct IVRRenderModels_IVRRenderModels_006_FreeRenderModel_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_006 *iface = (struct u_IVRRenderModels_IVRRenderModels_006 *)params->linux_side;
|
|
|
|
struct render_model *model = CONTAINING_RECORD( params->pRenderModel, struct render_model, w_0912 );
|
|
|
|
iface->FreeRenderModel( model->u_0912 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* LoadTexture(_Async) / FreeTexture */
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_002_LoadTexture( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_002_LoadTexture_params *params = (struct IVRRenderModels_IVRRenderModels_002_LoadTexture_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_002 *iface = (struct u_IVRRenderModels_IVRRenderModels_002 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = params->ppTexture ? CONTAINING_RECORD( *params->ppTexture, struct render_model_texture_map, w_090 ) : NULL;
|
|
|
|
params->_ret = iface->LoadTexture( params->textureId, params->ppTexture ? &map->u_090 : nullptr );
|
|
|
|
if (params->_ret == 0 && map) map->w_090 = *map->u_090;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_002_FreeTexture( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_002_FreeTexture_params *params = (struct IVRRenderModels_IVRRenderModels_002_FreeTexture_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_002 *iface = (struct u_IVRRenderModels_IVRRenderModels_002 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = CONTAINING_RECORD( params->pTexture, struct render_model_texture_map, w_090 );
|
|
|
|
iface->FreeTexture( map->u_090 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_004_LoadTexture_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_004_LoadTexture_Async_params *params = (struct IVRRenderModels_IVRRenderModels_004_LoadTexture_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_004 *iface = (struct u_IVRRenderModels_IVRRenderModels_004 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = params->ppTexture ? CONTAINING_RECORD( *params->ppTexture, struct render_model_texture_map, w_090 ) : NULL;
|
|
|
|
params->_ret = iface->LoadTexture_Async( params->textureId, params->ppTexture ? &map->u_090 : nullptr );
|
|
|
|
if (params->_ret == 0 && map) map->w_090 = *map->u_090;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_004_FreeTexture( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_004_FreeTexture_params *params = (struct IVRRenderModels_IVRRenderModels_004_FreeTexture_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_004 *iface = (struct u_IVRRenderModels_IVRRenderModels_004 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = CONTAINING_RECORD( params->pTexture, struct render_model_texture_map, w_090 );
|
|
|
|
iface->FreeTexture( map->u_090 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_005_LoadTexture_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_005_LoadTexture_Async_params *params = (struct IVRRenderModels_IVRRenderModels_005_LoadTexture_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_005 *iface = (struct u_IVRRenderModels_IVRRenderModels_005 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = params->ppTexture ? CONTAINING_RECORD( *params->ppTexture, struct render_model_texture_map, w_090 ) : NULL;
|
|
|
|
params->_ret = iface->LoadTexture_Async( params->textureId, params->ppTexture ? &map->u_090 : nullptr );
|
|
|
|
if (params->_ret == 0 && map) map->w_090 = *map->u_090;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_005_FreeTexture( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_005_FreeTexture_params *params = (struct IVRRenderModels_IVRRenderModels_005_FreeTexture_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_005 *iface = (struct u_IVRRenderModels_IVRRenderModels_005 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = CONTAINING_RECORD( params->pTexture, struct render_model_texture_map, w_090 );
|
|
|
|
iface->FreeTexture( map->u_090 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_006_LoadTexture_Async( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_006_LoadTexture_Async_params *params = (struct IVRRenderModels_IVRRenderModels_006_LoadTexture_Async_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_006 *iface = (struct u_IVRRenderModels_IVRRenderModels_006 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = params->ppTexture ? CONTAINING_RECORD( *params->ppTexture, struct render_model_texture_map, w_1237 ) : NULL;
|
|
|
|
params->_ret = iface->LoadTexture_Async( params->textureId, params->ppTexture ? &map->u_1237 : nullptr );
|
|
|
|
if (params->_ret == 0 && map) map->w_1237 = *map->u_1237;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRRenderModels_IVRRenderModels_006_FreeTexture( void *args )
|
2023-09-30 10:48:58 +02:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRRenderModels_IVRRenderModels_006_FreeTexture_params *params = (struct IVRRenderModels_IVRRenderModels_006_FreeTexture_params *)args;
|
2023-09-30 10:48:58 +02:00
|
|
|
struct u_IVRRenderModels_IVRRenderModels_006 *iface = (struct u_IVRRenderModels_IVRRenderModels_006 *)params->linux_side;
|
|
|
|
struct render_model_texture_map *map = CONTAINING_RECORD( params->pTexture, struct render_model_texture_map, w_1237 );
|
|
|
|
iface->FreeTexture( map->u_1237 );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2023-09-30 10:48:58 +02:00
|
|
|
}
|