Monado OpenXR Runtime
Resources Class Reference
Inheritance diagram for Resources:
Collaboration diagram for Resources:

Public Member Functions

 Resources (u_logging_level l, const std::string &steamvr_install)
 
uint32_t LoadSharedResource (const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen) override
 Loads the specified resource into the provided buffer if large enough. More...
 
uint32_t GetResourceFullPath (const char *pchResourceName, const char *pchResourceTypeDirectory, VR_OUT_STRING() char *pchPathBuffer, uint32_t unBufferLen) override
 Provides the full path to the specified resource. More...
 

Member Function Documentation

◆ GetResourceFullPath()

uint32_t Resources::GetResourceFullPath ( const char *  pchResourceName,
const char *  pchResourceTypeDirectory,
VR_OUT_STRING() char *  pchPathBuffer,
uint32_t  unBufferLen 
)
override

Provides the full path to the specified resource.

Resource names can include named directories for drivers and other things, and this resolves all of those and returns the actual physical path. pchResourceTypeDirectory is the subdirectory of resources to look in.

◆ LoadSharedResource()

uint32_t Resources::LoadSharedResource ( const char *  pchResourceName,
char *  pchBuffer,
uint32_t  unBufferLen 
)
override

Loads the specified resource into the provided buffer if large enough.

Returns the size in bytes of the buffer required to hold the specified resource.


The documentation for this class was generated from the following files: