Example usage for android.opengl GLSurfaceView.Renderer interface-usage

List of usage examples for android.opengl GLSurfaceView.Renderer interface-usage

Introduction

In this page you can find the example usage for android.opengl GLSurfaceView.Renderer interface-usage.

Usage

From source file helloopengles.example.com.MyGLRenderer.java

/**
 * Provides drawing instructions for a GLSurfaceView object. This class
 * must override the OpenGL ES drawing lifecycle methods:
 * <ul>
 *   <li>{@link android.opengl.GLSurfaceView.Renderer#onSurfaceCreated}</li>
 *   <li>{@link android.opengl.GLSurfaceView.Renderer#onDrawFrame}</li>

From source file com.adobe.plugins.FastCanvasRenderer.java

public class FastCanvasRenderer implements GLSurfaceView.Renderer {
    // ==========================================================================
    public FastCanvasRenderer(FastCanvasView view) {
        super();
        mView = view;
        // Frame limiter

From source file com.example.android.mediaeffects.MediaEffectsFragment.java

public class MediaEffectsFragment extends Fragment implements GLSurfaceView.Renderer {

    private static final String STATE_CURRENT_EFFECT = "current_effect";

    private GLSurfaceView mEffectView;
    private int[] mTextures = new int[2];

From source file com.example.vendrisample.HelloEffects.java

@SuppressLint({ "NewApi", "SetJavaScriptEnabled" })
public class HelloEffects extends Activity implements GLSurfaceView.Renderer, VendriListener {

    private GLSurfaceView mEffectView;
    private final int[] mTextures = new int[2];
    private EffectContext mEffectContext;

From source file org.cocos2dx.lib.Cocos2dxRenderer.java

public class Cocos2dxRenderer implements GLSurfaceView.Renderer {
    private final static long NANOSECONDSPERSECOND = 1000000000L;
    private final static long NANOSECONDSPERMINISECOND = 1000000;
    private static long animationInterval = (long) (1.0 / 60 * NANOSECONDSPERSECOND);
    private long last;
    private int screenWidth;

From source file com.wlanjie.streaming.camera.CameraView.java

public class CameraView extends FrameLayout implements GLSurfaceView.Renderer {

    /** The camera device faces the opposite direction as the device's screen. */
    public static final int FACING_BACK = Constants.FACING_BACK;

    /** The camera device faces the same direction as the device's screen. */

From source file com.watabou.noosa.Game.java

public class Game extends Activity
        implements GLSurfaceView.Renderer, View.OnTouchListener, ActivityCompat.OnRequestPermissionsResultCallback {

    private static Game instance;

    // Actual size of the screen

From source file openscience.crowdsource.video.experiments.MainActivity.java

/**
 * Main screen with main feature: run recognition process
 *
 * @author Daniil Efremov
 */
public class MainActivity extends android.app.Activity implements GLSurfaceView.Renderer {

From source file openscience.crowdsource.experiments.MainActivity.java

public class MainActivity extends AppCompatActivity implements GLSurfaceView.Renderer {

    String welcome = "We would like to thank you for participating in experiment crowdsourcing "
            + "to collaboratively solve complex problems!\n\n"
            + "One of the available scenarios is collaborative optimization of computer systems: "
            + "computers become very inefficient and it is not uncommon to get 10x speedups, "

From source file com.aimfire.demo.CamcorderActivity.java

class CameraSurfaceRenderer implements GLSurfaceView.Renderer {
    private static final String TAG = "CameraSurfaceRenderer";
    private static final boolean VERBOSE = false;

    private static final int FILTER_NONE = 0;
    private static final int FILTER_BLACK_WHITE = 1;