Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Macros | Functions
WeaverC.h File Reference
#include "WeaverTypes.h"
Include dependency graph for WeaverC.h:

Go to the source code of this file.

Macros

#define DIMENCOSR_API_C
 

Functions

DIMENCOSR_API_C void SetGlobalParameters (struct FLOAT3 userPos)
 Set global shader parameters needed for weaving. More...
 
DIMENCOSR_API_C void SetGlobalParametersFromConfig (const char *configPath, struct FLOAT3 userPos)
 Set global shader parameters needed for weaving, using a different .ini file. More...
 
DIMENCOSR_API_C enum WeaverErrorCode LoadTexture (enum WeaverTextureType type, unsigned char **out_pTexture, int *out_width, int *out_height, int *out_channels, int *out_bitsPerPixel)
 Fill the vertex attributes needed for weaving. More...
 
DIMENCOSR_API_C void UnLoadCorrectionTexture (unsigned char **in_pTexture)
 Unloads a texture. More...
 
DIMENCOSR_API_C void FillInterpolators (struct FLOAT2 TextureRes, struct FLOAT4 *phases_offset, struct FLOAT4 *phases_scale_x, struct FLOAT4 *phases_scale_y, struct FLOAT4 *dxy_offset, struct FLOAT4 *dxy_scale_x, struct FLOAT4 *dxy_scale_y, struct FLOAT2 *ScreenPos_scale, struct FLOAT2 *ScreenPos_offset_x, struct FLOAT2 *ScreenPos_scale_y, struct FLOAT2 *WeaverVars_offset, struct FLOAT2 *WeaverVars_scale_x, struct FLOAT2 *WeaverVars_scale_y)
 
DIMENCOSR_API_C float GetXTalkFactor ()
 
DIMENCOSR_API_C float GetViewfilterSlope ()
 
DIMENCOSR_API_C float GetPattern ()
 
DIMENCOSR_API_C float GetSlant ()
 Returns slant as a coëfficiënt. More...
 
DIMENCOSR_API_C float GetPx ()
 Returns pitch in x direction in pixels. More...
 
DIMENCOSR_API_C float GetN ()
 Returns the refractive index N. More...
 
DIMENCOSR_API_C float GetDoN ()
 Returns D over N in millimeters. More...
 

Macro Definition Documentation

◆ DIMENCOSR_API_C

#define DIMENCOSR_API_C

Copyright (C) 2022 Dimenco

This software has been provided under the Dimenco EULA. (End User License Agreement) You can find the agreement at https://www.dimenco.eu/eula

This source code is considered Protected Code under the definitions of the EULA.

Function Documentation

◆ FillInterpolators()

DIMENCOSR_API_C void FillInterpolators ( struct FLOAT2  TextureRes,
struct FLOAT4 phases_offset,
struct FLOAT4 phases_scale_x,
struct FLOAT4 phases_scale_y,
struct FLOAT4 dxy_offset,
struct FLOAT4 dxy_scale_x,
struct FLOAT4 dxy_scale_y,
struct FLOAT2 ScreenPos_scale,
struct FLOAT2 ScreenPos_offset_x,
struct FLOAT2 ScreenPos_scale_y,
struct FLOAT2 WeaverVars_offset,
struct FLOAT2 WeaverVars_scale_x,
struct FLOAT2 WeaverVars_scale_y 
)

◆ GetDoN()

DIMENCOSR_API_C float GetDoN ( )

Returns D over N in millimeters.

◆ GetN()

DIMENCOSR_API_C float GetN ( )

Returns the refractive index N.

◆ GetPattern()

DIMENCOSR_API_C float GetPattern ( )

◆ GetPx()

DIMENCOSR_API_C float GetPx ( )

Returns pitch in x direction in pixels.

◆ GetSlant()

DIMENCOSR_API_C float GetSlant ( )

Returns slant as a coëfficiënt.

◆ GetViewfilterSlope()

DIMENCOSR_API_C float GetViewfilterSlope ( )

◆ GetXTalkFactor()

DIMENCOSR_API_C float GetXTalkFactor ( )

◆ LoadTexture()

DIMENCOSR_API_C enum WeaverErrorCode LoadTexture ( enum WeaverTextureType  type,
unsigned char **  out_pTexture,
int *  out_width,
int *  out_height,
int *  out_channels,
int *  out_bitsPerPixel 
)

Fill the vertex attributes needed for weaving.

Parameters
[in]TextureResSize of the back buffer.
[in]PositionVertex position.
[out]phases
[out]dxy
[out]ScreenPos
[out]WeaverVars

◆ SetGlobalParameters()

DIMENCOSR_API_C void SetGlobalParameters ( struct FLOAT3  userPos)

Set global shader parameters needed for weaving.

Parameters
userPosCentered location between the left-and right eye.

◆ SetGlobalParametersFromConfig()

DIMENCOSR_API_C void SetGlobalParametersFromConfig ( const char *  configPath,
struct FLOAT3  userPos 
)

Set global shader parameters needed for weaving, using a different .ini file.

Parameters
configPathCustom path for loading shader parameters.
userPosCentered location between the left-and right eye.

◆ UnLoadCorrectionTexture()

DIMENCOSR_API_C void UnLoadCorrectionTexture ( unsigned char **  in_pTexture)

Unloads a texture.

Parameters
in_pTexturePointer to a texture.