org.lwjgl.opengles.EXTMemoryObjectFD Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengles Show documentation
Show all versions of lwjgl-opengles Show documentation
A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the EXT_memory_object_fd extension.
*
* Building upon the OpenGL memory object and semaphore framework defined in EXT_external_objects this extension enables an OpenGL
* application to import a memory object or semaphore from POSIX file descriptor external handles.
*
* Requires {@link EXTMemoryObject EXT_memory_object} and {@link GLES30 GLES30}.
*/
public class EXTMemoryObjectFD {
/** Accepted by the {@code handleType} parameter of ImportMemoryFdEXT() or ImportSemaphoreFdEXT(). */
public static final int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586;
static { GLES.initialize(); }
protected EXTMemoryObjectFD() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glImportMemoryFdEXT
);
}
// --- [ glImportMemoryFdEXT ] ---
public static native void glImportMemoryFdEXT(@NativeType("GLuint") int memory, @NativeType("GLuint64") long size, @NativeType("GLenum") int handleType, @NativeType("GLint") int fd);
}