blob: 33a39d4a4f5c9b4776d91896fe386a350646ccab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// from <EGL/egl.h>
pub const EGL_NONE: EGLenum = 0x3038;
pub const EGL_WIDTH: EGLenum = 0x3057;
pub const EGL_HEIGHT: EGLenum = 0x3056;
// from <EGL/eglext.h>
pub const EGL_LINUX_DMA_BUF_EXT: EGLenum = 0x3270;
pub const EGL_LINUX_DRM_FOURCC_EXT: EGLenum = 0x3271;
pub const EGL_DMA_BUF_PLANE0_FD_EXT: EGLenum = 0x3272;
pub const EGL_DMA_BUF_PLANE0_OFFSET_EXT: EGLenum = 0x3273;
pub const EGL_DMA_BUF_PLANE0_PITCH_EXT: EGLenum = 0x3274;
#[repr(C)]
pub struct EGLDisplayTarget(());
pub type EGLDisplay = *mut EGLDisplayTarget;
#[repr(C)]
pub struct EGLContextTarget(());
pub type EGLContext = *mut EGLContextTarget;
#[repr(C)]
pub struct EGLClientBufferTarget(());
pub type EGLClientBuffer = *mut EGLClientBufferTarget;
#[repr(C)]
pub struct EGLImageTarget(());
pub type EGLImage = *mut EGLImageTarget;
pub type EGLenum = core::ffi::c_uint;
pub type EGLAttrib = libc::intptr_t;
#[link(name = "EGL")]
extern "C" {
pub fn eglCreateImage(d: EGLDisplay, c: EGLContext, t: EGLenum, buf: EGLClientBuffer, attribs: *const EGLAttrib) -> EGLImage;
}
#[link(name = "GL")]
extern "C" {
pub fn glEGLImageTargetTexture2DOES(t: u32, img: EGLImage);
}
|