GlRenderer

此项为 API 级别 XE16 中的新增配置
公共接口

glRenderer

用于使用 OpenGL ES 2.0 API 呈现 LiveCard 的接口。

公共方法
抽象 无效
抽象 无效
onSurfaceChanged(int width, int height)
抽象 无效

公共方法

在 API 级别 XE16 中添加

public abstract void onDrawFrame ()

调用此方法可绘制当前帧。

在 API 级别 XE16 中添加

public abstract void onSurfaceChanged (int width, int height)

在 Surface 的尺寸发生变化时调用。

参数
宽度 Surface 的新宽度
高度 Surface 的新高度
在 API 级别 XE16 中添加

public abstract void onSurfaceCreated (EGLConfig config)

在创建或重新创建呈现 Surface 时调用。

参数
配置 已创建 Surface 的配置