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

org.lwjgl.glfw.GLFWNativeEGL Maven / Gradle / Ivy

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

import org.lwjgl.system.*;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;

import org.lwjgl.egl.EGL10;

/** Native bindings to the GLFW library's EGL native access functions. */
public class GLFWNativeEGL {

    protected GLFWNativeEGL() {
        throw new UnsupportedOperationException();
    }

    /** Contains the function pointers loaded from {@code GLFW.getLibrary()}. */
    public static final class Functions {

        private Functions() {}

        /** Function address. */
        public static final long
            GetEGLDisplay = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetEGLDisplay"),
            GetEGLContext = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetEGLContext"),
            GetEGLSurface = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetEGLSurface");

    }

    // --- [ glfwGetEGLDisplay ] ---

    /**
     * Returns the {@code EGLDisplay} used by GLFW.
     * 
     * 

This function may be called from any thread. Access is not synchronized.

* * @return the {@code EGLDisplay} used by GLFW, or {@link EGL10#EGL_NO_DISPLAY} if an error occured * * @since version 3.0 */ @NativeType("EGLDisplay") public static long glfwGetEGLDisplay() { long __functionAddress = Functions.GetEGLDisplay; return invokeP(__functionAddress); } // --- [ glfwGetEGLContext ] --- /** * Returns the {@code EGLContext} of the specified window. * *

This function may be called from any thread. Access is not synchronized.

* * @param window a GLFW window * * @return the {@code EGLContext} of the specified window, or {@link EGL10#EGL_NO_CONTEXT} if an error occurred * * @since version 3.0 */ @NativeType("EGLContext") public static long glfwGetEGLContext(@NativeType("GLFWwindow *") long window) { long __functionAddress = Functions.GetEGLContext; if (CHECKS) { check(window); } return invokePP(__functionAddress, window); } // --- [ glfwGetEGLSurface ] --- /** * Returns the {@code EGLSurface} of the specified window. * *

This function may be called from any thread. Access is not synchronized.

* * @return the {@code EGLSurface} of the specified window, or {@link EGL10#EGL_NO_SURFACE} if an error occurred * * @since version 3.0 */ @NativeType("EGLSurface") public static long glfwGetEGLSurface(@NativeType("GLFWwindow *") long window) { long __functionAddress = Functions.GetEGLSurface; if (CHECKS) { check(window); } return invokePP(__functionAddress, window); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy