#include <Weaver.h>
|
static void | SetGlobalParameters (FLOAT3 userPos) |
| Set global shader parameters needed for weaving. More...
|
|
static void | SetGlobalParameters (const char *configPath, FLOAT3 userPos) |
| Set global shader parameters needed for weaving, using a different .ini file. More...
|
|
static void | ReconfigureWeaver () |
| Reconfigures global weaver parameters. More...
|
|
static void | SetDeviceSerialNumbers (const std::vector< std::string > &deviceSerialNumbers) |
| Sets the device serial numbers of attached devices to be used when loading calibration data. More...
|
|
static void | SetInstallPath (const std::string &installPath) |
| Sets the install path for Simulated Reality to be used when configuring the weaver. More...
|
|
static void | FillAttributes (const FLOAT2 &TextureRes, const FLOAT4 &Position, FLOAT4 &phases, FLOAT4 &dxy, FLOAT2 &ScreenPos, FLOAT2 &WeaverVars) |
| Fill the vertex attributes needed for weaving. More...
|
|
static WeaverErrorCode | LoadTexture (WeaverTextureType type, unsigned char **out_pTexture, int *out_width, int *out_height, int *out_channels, int *out_bitsPerPixel) |
| Load a weaver texture. More...
|
|
static void | UnLoadCorrectionTexture (unsigned char **in_pTexture) |
| Unloads a texture. More...
|
|
static float | GetPattern () |
|
static float | GetXTalkFactor () |
|
static float | GetFilterWidth () |
|
static float | GetFilterSlope () |
|
static float | GetSlant () |
| Returns slant as a coëfficiënt. More...
|
|
static float | GetPx () |
| Returns pitch in x direction in pixels. More...
|
|
static float | GetN () |
| Returns the refractive index N. More...
|
|
static float | GetDoN () |
| Returns D over N in millimeters. More...
|
|
◆ FillAttributes()
Fill the vertex attributes needed for weaving.
- Parameters
-
[in] | TextureRes | Size of the back buffer. |
[in] | Position | Vertex position. |
[out] | phases | |
[out] | dxy | |
[out] | ScreenPos | |
[out] | WeaverVars | |
◆ GetDoN()
static float Dimenco::Weaver::GetDoN |
( |
| ) |
|
|
static |
Returns D over N in millimeters.
◆ GetFilterSlope()
static float Dimenco::Weaver::GetFilterSlope |
( |
| ) |
|
|
static |
◆ GetFilterWidth()
static float Dimenco::Weaver::GetFilterWidth |
( |
| ) |
|
|
static |
◆ GetN()
static float Dimenco::Weaver::GetN |
( |
| ) |
|
|
static |
Returns the refractive index N.
◆ GetPattern()
static float Dimenco::Weaver::GetPattern |
( |
| ) |
|
|
static |
◆ GetPx()
static float Dimenco::Weaver::GetPx |
( |
| ) |
|
|
static |
Returns pitch in x direction in pixels.
◆ GetSlant()
static float Dimenco::Weaver::GetSlant |
( |
| ) |
|
|
static |
Returns slant as a coëfficiënt.
◆ GetXTalkFactor()
static float Dimenco::Weaver::GetXTalkFactor |
( |
| ) |
|
|
static |
◆ LoadTexture()
static WeaverErrorCode Dimenco::Weaver::LoadTexture |
( |
WeaverTextureType |
type, |
|
|
unsigned char ** |
out_pTexture, |
|
|
int * |
out_width, |
|
|
int * |
out_height, |
|
|
int * |
out_channels, |
|
|
int * |
out_bitsPerPixel |
|
) |
| |
|
static |
Load a weaver texture.
- Parameters
-
[in] | type | Weaver texture type. |
[out] | out_pTexture | Pointer to a texture. |
[out] | out_width | Width in pixels. |
[out] | out_height | Height in pixels. |
[out] | out_channels | Amount of channels. |
[out] | out_bitsPerPixel | Bits per pixel. |
- Returns
- Error code
◆ ReconfigureWeaver()
static void Dimenco::Weaver::ReconfigureWeaver |
( |
| ) |
|
|
static |
Reconfigures global weaver parameters.
◆ SetDeviceSerialNumbers()
static void Dimenco::Weaver::SetDeviceSerialNumbers |
( |
const std::vector< std::string > & |
deviceSerialNumbers | ) |
|
|
static |
Sets the device serial numbers of attached devices to be used when loading calibration data.
◆ SetGlobalParameters() [1/2]
static void Dimenco::Weaver::SetGlobalParameters |
( |
const char * |
configPath, |
|
|
FLOAT3 |
userPos |
|
) |
| |
|
static |
Set global shader parameters needed for weaving, using a different .ini file.
- Parameters
-
configPath | Custom path for loading shader parameters. |
userPos | Centered location between the left-and right eye. |
◆ SetGlobalParameters() [2/2]
static void Dimenco::Weaver::SetGlobalParameters |
( |
FLOAT3 |
userPos | ) |
|
|
static |
Set global shader parameters needed for weaving.
- Parameters
-
userPos | Centered location between the left-and right eye. |
◆ SetInstallPath()
static void Dimenco::Weaver::SetInstallPath |
( |
const std::string & |
installPath | ) |
|
|
static |
Sets the install path for Simulated Reality to be used when configuring the weaver.
◆ UnLoadCorrectionTexture()
static void Dimenco::Weaver::UnLoadCorrectionTexture |
( |
unsigned char ** |
in_pTexture | ) |
|
|
static |
Unloads a texture.
- Parameters
-
in_pTexture | Pointer to a texture. |
The documentation for this class was generated from the following file: