/ Forums
Applications are now open to attend this year's Oculus Connect. Join us October 11–12 and be first in line for an inside look at what’s new and next for VR.

Oculus Connect 4: Speaker Preview

We've revealed some of the Oculus speakers who'll present at Oculus Connect 4 this year! Click here to learn more.
New To The Forum? Click Here To Read The How To Guide. -- Developers Click Here.

How do you load a texture?

CuryousCuryous Posts: 6
Virtual Boy (or Girl)
In my own native, non-VR projects, I can load an ETC2 texture using the AssetManager in Java, then pass it to native code for decoding and submitting to the GPU with glCompressedTexImage2D(), but how do you do it when stuck in native C++ land all the time?

The main thing I need is how to load a file.

Comments

  • CuryousCuryous Posts: 6
    Virtual Boy (or Girl)
    This worked: ovr_ReadFileFromApplicationPackage("assets/...")
Sign In or Register to comment.