From 7370ae7b82172de0fff38935947392d883f19509 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 6 Feb 2019 16:51:36 +0100 Subject: [PATCH] Update rlgl.h --- src/rlgl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/rlgl.h b/src/rlgl.h index 6a989de8..10356f13 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -261,6 +261,17 @@ typedef unsigned char byte; float chromaAbCorrection[4]; // HMD chromatic aberration correction parameters } VrDeviceInfo; + // VR Stereo rendering configuration for simulator + typedef struct VrStereoConfig { + RenderTexture2D stereoFbo; // VR stereo rendering framebuffer + Shader distortionShader; // VR stereo rendering distortion shader + Matrix eyesProjection[2]; // VR stereo rendering eyes projection matrices + Matrix eyesViewOffset[2]; // VR stereo rendering eyes view offset matrices + int eyeViewportRight[4]; // VR stereo rendering right eye viewport [x, y, w, h] + int eyeViewportLeft[4]; // VR stereo rendering left eye viewport [x, y, w, h] + } VrStereoConfig; + + // TraceLog message types typedef enum { LOG_ALL,