Added some comments
This commit is contained in:
parent
68a02e567d
commit
27ba7de1e4
18
src/core.c
18
src/core.c
@ -219,13 +219,13 @@ static bool windowShouldClose = false; // Flag to set window for closing
|
||||
|
||||
#if defined(PLATFORM_OCULUS)
|
||||
// OVR device variables
|
||||
static ovrSession session;
|
||||
static ovrHmdDesc hmdDesc;
|
||||
static ovrGraphicsLuid luid;
|
||||
static OculusLayer layer;
|
||||
static OculusBuffer buffer;
|
||||
static OculusMirror mirror;
|
||||
static unsigned int frameIndex = 0;
|
||||
static ovrSession session; // Oculus session (pointer to ovrHmdStruct)
|
||||
static ovrHmdDesc hmdDesc; // Oculus device descriptor parameters
|
||||
static ovrGraphicsLuid luid; // Oculus locally unique identifier for the program (64 bit)
|
||||
static OculusLayer layer; // Oculus drawing layer (similar to photoshop)
|
||||
static OculusBuffer buffer; // Oculus internal buffers (texture chain and fbo)
|
||||
static OculusMirror mirror; // Oculus mirror texture and fbo
|
||||
static unsigned int frameIndex = 0; // Oculus frames counter, used to discard frames from chain
|
||||
#endif
|
||||
|
||||
static unsigned int displayWidth, displayHeight; // Display width and height (monitor, device-screen, LCD, ...)
|
||||
@ -523,7 +523,7 @@ void InitOculusDevice(void)
|
||||
{
|
||||
// Initialize Oculus device
|
||||
ovrResult result = ovr_Initialize(NULL);
|
||||
if (OVR_FAILURE(result)) TraceLog(ERROR, "OVR: Could not initialize Oculus device");
|
||||
if (OVR_FAILURE(result)) TraceLog(WARNING, "OVR: Could not initialize Oculus device");
|
||||
|
||||
result = ovr_Create(&session, &luid);
|
||||
if (OVR_FAILURE(result))
|
||||
@ -538,7 +538,7 @@ void InitOculusDevice(void)
|
||||
TraceLog(INFO, "OVR: Manufacturer: %s", hmdDesc.Manufacturer);
|
||||
TraceLog(INFO, "OVR: Product ID: %i", hmdDesc.ProductId);
|
||||
TraceLog(INFO, "OVR: Product Type: %i", hmdDesc.Type);
|
||||
TraceLog(INFO, "OVR: Serian Number: %s", hmdDesc.SerialNumber);
|
||||
//TraceLog(INFO, "OVR: Serial Number: %s", hmdDesc.SerialNumber);
|
||||
TraceLog(INFO, "OVR: Resolution: %ix%i", hmdDesc.Resolution.w, hmdDesc.Resolution.h);
|
||||
|
||||
// NOTE: Oculus mirror is set to defined screenWidth and screenHeight...
|
||||
|
Loading…
Reference in New Issue
Block a user