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

org.lwjgl.egl.KHRImage Maven / Gradle / Ivy

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: http://lwjgl.org/license.php
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.egl;

import java.nio.*;

import org.lwjgl.system.*;

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

/**
 * Native bindings to the KHR_image extension.
 * 
 * 

This extension defines a new EGL resource type that is suitable for sharing 2D arrays of image data between client APIs, the EGLImage, and allows * creating EGLImages from EGL native pixmaps.

* *

Requires {@link EGL12 EGL L.1}.

*/ public class KHRImage { /** */ public static final int EGL_NATIVE_PIXMAP_KHR = 0x30B0; /** */ public static final long EGL_NO_IMAGE_KHR = 0x0L; /** Function address. */ @JavadocExclude public final long CreateImageKHR, DestroyImageKHR; @JavadocExclude protected KHRImage() { throw new UnsupportedOperationException(); } @JavadocExclude public KHRImage(FunctionProvider provider) { CreateImageKHR = provider.getFunctionAddress("eglCreateImageKHR"); DestroyImageKHR = provider.getFunctionAddress("eglDestroyImageKHR"); } // --- [ Function Addresses ] --- /** Returns the {@link KHRImage} instance. */ public static KHRImage getInstance() { return getInstance(EGL.getCapabilities()); } /** Returns the {@link KHRImage} instance of the specified {@link EGLCapabilities}. */ public static KHRImage getInstance(EGLCapabilities caps) { return checkFunctionality(caps.__KHRImage); } // --- [ eglCreateImageKHR ] --- /** Unsafe version of {@link #eglCreateImageKHR CreateImageKHR} */ @JavadocExclude public static long neglCreateImageKHR(long dpy, long ctx, int target, long buffer, long attrib_list) { long __functionAddress = getInstance().CreateImageKHR; if ( CHECKS ) { checkPointer(dpy); checkPointer(ctx); checkPointer(buffer); } return callPPIPPP(__functionAddress, dpy, ctx, target, buffer, attrib_list); } public static long eglCreateImageKHR(long dpy, long ctx, int target, long buffer, ByteBuffer attrib_list) { if ( CHECKS ) if ( attrib_list != null ) checkNT4(attrib_list, EGL10.EGL_NONE); return neglCreateImageKHR(dpy, ctx, target, buffer, memAddressSafe(attrib_list)); } /** Alternative version of: {@link #eglCreateImageKHR CreateImageKHR} */ public static long eglCreateImageKHR(long dpy, long ctx, int target, long buffer, IntBuffer attrib_list) { if ( CHECKS ) if ( attrib_list != null ) checkNT(attrib_list, EGL10.EGL_NONE); return neglCreateImageKHR(dpy, ctx, target, buffer, memAddressSafe(attrib_list)); } // --- [ eglDestroyImageKHR ] --- public static boolean eglDestroyImageKHR(long dpy, long image) { long __functionAddress = getInstance().DestroyImageKHR; if ( CHECKS ) { checkPointer(dpy); checkPointer(image); } return callPPZ(__functionAddress, dpy, image); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy