public static bool SetDesiredEyeTextureFormat(EyeTextureFormat value) { if (version >= OVRP_1_11_0.version) { return(OVRP_1_11_0.ovrp_SetDesiredEyeTextureFormat(value) == OVRPlugin.Bool.True); } else { return(false); } }
public static EyeTextureFormat GetDesiredEyeTextureFormat() { if (version >= OVRP_1_11_0.version) { uint eyeTextureFormatValue = (uint)OVRP_1_11_0.ovrp_GetDesiredEyeTextureFormat(); // convert both R8G8B8A8 and R8G8B8A8_SRGB to R8G8B8A8 here for avoid confusing developers if (eyeTextureFormatValue == 1) { eyeTextureFormatValue = 0; } return((EyeTextureFormat)eyeTextureFormatValue); } else { return(EyeTextureFormat.Default); } }