All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oculusvr.capi.MirrorTexture Maven / Gradle / Ivy

There is a newer version: 1.8.0.0
Show newest version
package com.oculusvr.capi;

import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
import com.sun.jna.ptr.IntByReference;

public class MirrorTexture extends PointerType {
    private final Hmd hmd;

    public MirrorTexture(Hmd hmd, Pointer peer) {
        super(peer);
        this.hmd = hmd;
    }

    public int getTextureId() {
        IntByReference intByReference = new IntByReference();
        OvrLibrary.INSTANCE.ovr_GetMirrorTextureBufferGL(hmd, getPointer(), intByReference);
        
        return intByReference.getValue();
    }
    
    public void destroy() {
      OvrLibrary.INSTANCE.ovr_DestroyMirrorTexture(hmd, getPointer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy