org.lwjgl.glfw.GLFWNativeEGL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-glfw Show documentation
Show all versions of lwjgl-glfw Show documentation
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.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.glfw;
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
*/
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
*/
public static long glfwGetEGLContext(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.
*
* @param window
*
* @return the {@code EGLSurface} of the specified window, or {@link EGL10#EGL_NO_SURFACE} if an error occurred
*
* @since version 3.0
*/
public static long glfwGetEGLSurface(long window) {
long __functionAddress = Functions.GetEGLSurface;
if (CHECKS) {
check(window);
}
return invokePP(__functionAddress, window);
}
}