GlRenderer

  • GlRenderer is an interface for rendering a LiveCard using the OpenGL ES 2.0 API.

  • The GlRenderer interface includes abstract methods for drawing the current frame, handling surface dimension changes, and managing surface creation.

  • The onDrawFrame method is called to draw the current frame.

  • The onSurfaceChanged method is called when the surface's dimensions change, providing the new width and height.

  • The onSurfaceCreated method is called when the rendering surface is created or recreated, providing the EGLConfig.

Added in API level XE16
public interface

GlRenderer

Interface for rendering a LiveCard using the OpenGL ES 2.0 API.

Public Methods
abstract void
abstract void
onSurfaceChanged(int width, int height)
abstract void

Public Methods

Added in API level XE16

public abstract void onDrawFrame ()

Called to draw the current frame.

Added in API level XE16

public abstract void onSurfaceChanged (int width, int height)

Called when the surface's dimensions change.

Parameters
width the surface's new width
height the surface's new height
Added in API level XE16

public abstract void onSurfaceCreated (EGLConfig config)

Called when the rendering surface is created or recreated.

Parameters
config the configuration of the created surface