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

org.lwjgl.opengl.EXTMemoryObjectFD Maven / Gradle / Ivy

Go to download

The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.

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.opengl;

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 ARBTextureStorage ARB_texture_storage} or a version of OpenGL that incorporates it.

*/ public class EXTMemoryObjectFD { /** Accepted by the {@code handleType} parameter of {@link #glImportMemoryFdEXT ImportMemoryFdEXT} */ public static final int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586; static { GL.initialize(); } protected EXTMemoryObjectFD() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLCapabilities 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); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy