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

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

Go to download

A multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop. It provides a simple API for creating windows, contexts and surfaces, receiving input and events.

There is a newer version: 3.3.4
Show newest version
/*
 * 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