ohos_window_sys/native_image/mod.rs
1//! Bindings to `native_image`
2//!
3//! The native image module is used for associating a surface with an OpenGL external texture.
4//! It functions as the consumer of a graphics queue.
5//! You can use the APIs of this module to obtain and use a buffer, and output the buffer content to an OpenGL external texture.
6//!
7//! The following scenario is common for native image development:
8//!
9//! Use the native image APIs to create an OH_NativeImage instance as the consumer and obtain the corresponding OHNativeWindow instance (functioning as the producer).
10//! Use the native window APIs to fill in and flush the buffer, and then use the native image APIs to update the buffer content to an OpenGL ES texture.
11//!
12//! Source: [Official Native Image documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/graphics/native-image-guidelines.md)
13
14#[link(name = "EGL")]
15#[link(name = "GLESv3")]
16#[link(name = "native_image")]
17extern "C" {}
18
19mod native_image;
20
21pub use native_image::*;