Example usage for android.opengl GLSurfaceView queueEvent

List of usage examples for android.opengl GLSurfaceView queueEvent

Introduction

In this page you can find the example usage for android.opengl GLSurfaceView queueEvent.

Prototype

public void queueEvent(Runnable r) 

Source Link

Document

Queue a runnable to be run on the GL rendering thread.

Usage

From source file:com.almalence.opencam.ApplicationScreen.java

public void queueGLEvent(final Runnable runnable) {
    final GLSurfaceView surfaceView = glView;

    if (surfaceView != null && runnable != null) {
        surfaceView.queueEvent(runnable);
    }//from   www  .  j  a  va2  s .c  o  m
}