org.lwjgl.opengles.OESEGLImage 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 static org.lwjgl.system.Checks.*;
/**
* Native bindings to the OES_EGL_image extension.
*
* This extension provides a mechanism for creating texture and renderbuffer objects sharing storage with specified EGLImage objects (such objects are
* referred to as "EGLImage targets").
*
* The companion EGL_KHR_image_base and EGL_KHR_image extensions provide the definition and rationale for EGLImage objects.
*
* Other EGL extensions, such as EGL_KHR_gl_texture_2D_image, EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_texture_3D_image,
* EGL_KHR_gl_renderbuffer_image, and EGL_KHR_vg_parent_image, define the related functionality of creating EGLImage objects from "EGLImage sources" such
* as OpenGL ES texture or renderbuffers or OpenVG VGImage objects.
*/
public class OESEGLImage {
static { GLES.initialize(); }
protected OESEGLImage() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glEGLImageTargetTexture2DOES, caps.glEGLImageTargetRenderbufferStorageOES
);
}
// --- [ glEGLImageTargetTexture2DOES ] ---
public static native void nglEGLImageTargetTexture2DOES(int target, long image);
public static void glEGLImageTargetTexture2DOES(int target, long image) {
if ( CHECKS )
check(image);
nglEGLImageTargetTexture2DOES(target, image);
}
// --- [ glEGLImageTargetRenderbufferStorageOES ] ---
public static native void nglEGLImageTargetRenderbufferStorageOES(int target, long image);
public static void glEGLImageTargetRenderbufferStorageOES(int target, long image) {
if ( CHECKS )
check(image);
nglEGLImageTargetRenderbufferStorageOES(target, image);
}
}