Kaynağa Gözat

Reviewed Vr stereo

pull/1711/head
Ray 4 yıl önce
ebeveyn
işleme
84d0d21f23
3 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. +1
    -1
      examples/core/core_vr_simulator.c
  2. +2
    -2
      src/core.c
  3. +1
    -1
      src/raylib.h

+ 1
- 1
examples/core/core_vr_simulator.c Dosyayı Görüntüle

@ -52,7 +52,7 @@ int main(void)
};
// Load VR stereo config for VR device parameteres (Oculus Rift CV1 parameters)
VrStereoConfig config = LoadVrStereoMode(device);
VrStereoConfig config = LoadVrStereoConfig(device);
// Distortion shader (uses device lens distortion and chroma)
Shader distortion = LoadShader(0, TextFormat("resources/distortion%i.fs", GLSL_VERSION));

+ 2
- 2
src/core.c Dosyayı Görüntüle

@ -163,7 +163,7 @@
#include <stdio.h> // Required for: sprintf() [Used in OpenURL()]
#include <string.h> // Required for: strrchr(), strcmp(), strlen()
#include <time.h> // Required for: time() [Used in InitTimer()]
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoMode()]
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoConfig()]
#include <sys/stat.h> // Required for: stat() [Used in GetFileModTime()]
@ -2100,7 +2100,7 @@ void EndVrStereoMode(void)
}
// Load VR stereo config for VR simulator device parameters
VrStereoConfig LoadVrStereoMode(VrDeviceInfo device)
VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
{
VrStereoConfig config = { 0 };

+ 1
- 1
src/raylib.h Dosyayı Görüntüle

@ -969,7 +969,7 @@ RLAPI void BeginVrStereoMode(RenderTexture2D target, VrStereoConfig config); //
RLAPI void EndVrStereoMode(void); // End stereo rendering (requires VR simulator)
// VR stereo config functions for VR simulator
RLAPI VrStereoConfig LoadVrStereoMode(VrDeviceInfo device); // Load VR stereo config for VR simulator device parameters
RLAPI VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device); // Load VR stereo config for VR simulator device parameters
RLAPI void UnloadVrStereoConfig(VrStereoConfig config); // Unload VR stereo config
// Shader management functions

Yükleniyor…
İptal
Kaydet