Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
sbf0202's avatar
sbf0202
Honored Guest
11 years ago

SDK 0.3.x question

So with the updated SDK around the corner, I probably picked the wrong time to ask this question, but I tried implementing the sample code on the SDK Docs intro (https://developer.oculus.com/doc/html/index.html#intro_sec), and when I got to the point where I wanted to output the HMDInfo data, I received an IDE error that these methods don't exist:


std::cout << Info.HScreenSize << endl;
std::cout << Info.VScreenSize << endl;


I properly linked LibOVR.a (in XCode) and set up my header search paths. Everything compiled OK once I removed these lines.

Did I miss anything, or should I just wait until the new SDK is released?

Thanks,

- Scott

2 Replies

  • Ybalrid's avatar
    Ybalrid
    Expert Protege
    Hi,

    The documentation you are using was generated it 2013. It actualy document the Oriented-Object API of an old 0.2.x version that was up-to-date on march 2013.

    Now with the SDK 0.3.x you have to use a C-Style API to get informations from the Rift. You can find help on the "SDK Overview" document (OculusSDK/Doc/ on the SDK).

    You can find a basic tutorial written by CyberReality here : https://developer.oculus.com/wiki/Minimal_Oculus_Application_0.3.x

    It's "visual studio" oriented on how to set-up and link the IDE, but It seems you have correctly configured Xcode, so it's not a problem ^^"
  • sbf0202's avatar
    sbf0202
    Honored Guest
    Thanks,

    I'll give the new code structure a go when I get home from work. I can't do much with it until my Rift arrives, but I at least want to get a head-start.

    - Scott