mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 00:04:34 +01:00
vrclient: Move source files to separate directory.
In preparation for the next commit.
This commit is contained in:
parent
cef5122550
commit
d8f1c49922
215 changed files with 31 additions and 28 deletions
|
|
@ -1,84 +0,0 @@
|
|||
#include "vrclient_private.h"
|
||||
#include "vrclient_defs.h"
|
||||
#include "openvr_v0.9.15/openvr.h"
|
||||
using namespace vr;
|
||||
extern "C" {
|
||||
#include "struct_converters.h"
|
||||
}
|
||||
#include "cppIVRRenderModels_IVRRenderModels_002.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
bool cppIVRRenderModels_IVRRenderModels_002_LoadRenderModel(void *linux_side, const char * pchRenderModelName, winRenderModel_t_0915 ** ppRenderModel)
|
||||
{
|
||||
RenderModel_t *lin;
|
||||
bool _ret;
|
||||
_ret = ((IVRRenderModels*)linux_side)->LoadRenderModel((const char *)pchRenderModelName, &lin);
|
||||
if(_ret == 0)
|
||||
*ppRenderModel = struct_RenderModel_t_0915_wrap(lin);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
void cppIVRRenderModels_IVRRenderModels_002_FreeRenderModel(void *linux_side, winRenderModel_t_0915 * pRenderModel)
|
||||
{
|
||||
((IVRRenderModels*)linux_side)->FreeRenderModel(struct_RenderModel_t_0915_unwrap(pRenderModel));
|
||||
}
|
||||
|
||||
bool cppIVRRenderModels_IVRRenderModels_002_LoadTexture(void *linux_side, TextureID_t textureId, winRenderModel_TextureMap_t_0915 ** ppTexture)
|
||||
{
|
||||
RenderModel_TextureMap_t *lin;
|
||||
bool _ret;
|
||||
_ret = ((IVRRenderModels*)linux_side)->LoadTexture((vr::TextureID_t)textureId, &lin);
|
||||
if(_ret == 0)
|
||||
*ppTexture = struct_RenderModel_TextureMap_t_0915_wrap(lin);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
void cppIVRRenderModels_IVRRenderModels_002_FreeTexture(void *linux_side, winRenderModel_TextureMap_t_0915 * pTexture)
|
||||
{
|
||||
((IVRRenderModels*)linux_side)->FreeTexture(struct_RenderModel_TextureMap_t_0915_unwrap(pTexture));
|
||||
}
|
||||
|
||||
uint32_t cppIVRRenderModels_IVRRenderModels_002_GetRenderModelName(void *linux_side, uint32_t unRenderModelIndex, char * pchRenderModelName, uint32_t unRenderModelNameLen)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetRenderModelName((uint32_t)unRenderModelIndex, (char *)pchRenderModelName, (uint32_t)unRenderModelNameLen);
|
||||
}
|
||||
|
||||
uint32_t cppIVRRenderModels_IVRRenderModels_002_GetRenderModelCount(void *linux_side)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetRenderModelCount();
|
||||
}
|
||||
|
||||
uint32_t cppIVRRenderModels_IVRRenderModels_002_GetComponentCount(void *linux_side, const char * pchRenderModelName)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentCount((const char *)pchRenderModelName);
|
||||
}
|
||||
|
||||
uint32_t cppIVRRenderModels_IVRRenderModels_002_GetComponentName(void *linux_side, const char * pchRenderModelName, uint32_t unComponentIndex, char * pchComponentName, uint32_t unComponentNameLen)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentName((const char *)pchRenderModelName, (uint32_t)unComponentIndex, (char *)pchComponentName, (uint32_t)unComponentNameLen);
|
||||
}
|
||||
|
||||
uint64_t cppIVRRenderModels_IVRRenderModels_002_GetComponentButtonMask(void *linux_side, const char * pchRenderModelName, const char * pchComponentName)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentButtonMask((const char *)pchRenderModelName, (const char *)pchComponentName);
|
||||
}
|
||||
|
||||
uint32_t cppIVRRenderModels_IVRRenderModels_002_GetComponentRenderModelName(void *linux_side, const char * pchRenderModelName, const char * pchComponentName, char * pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentRenderModelName((const char *)pchRenderModelName, (const char *)pchComponentName, (char *)pchComponentRenderModelName, (uint32_t)unComponentRenderModelNameLen);
|
||||
}
|
||||
|
||||
bool cppIVRRenderModels_IVRRenderModels_002_GetComponentState(void *linux_side, const char * pchRenderModelName, const char * pchComponentName, VRControllerState_t * pControllerState, RenderModel_ComponentState_t * pComponentState)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, (const vr::VRControllerState_t *)pControllerState, (vr::RenderModel_ComponentState_t *)pComponentState);
|
||||
}
|
||||
|
||||
bool cppIVRRenderModels_IVRRenderModels_002_RenderModelHasComponent(void *linux_side, const char * pchRenderModelName, const char * pchComponentName)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->RenderModelHasComponent((const char *)pchRenderModelName, (const char *)pchComponentName);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue