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

org.lwjgl.openxr.XrSession Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openxr;

/** Wraps an {@code XrSession} handle. */
public class XrSession extends DispatchableHandle {

    private final XrInstance instance;

    /**
     * Creates an {@code XrSession} using the specified native handle and {@code XrInstance}.
     *
     * @param handle   the native {@code XrSession} handle
     * @param instance the {@code XrInstance} from which {@code handle} was created
     */
    public XrSession(long handle, XrInstance instance) {
        super(handle, instance.getCapabilities());
        this.instance = instance;
    }

    /** Returns the {@code XrInstance} from which this handle was created. */
    public XrInstance getInstance() {
        return instance;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy