Code example for AtomicBoolean

Methods: set

0
        setEGLContextClientVersion(2);
        setRenderer(new Renderer());
    } 
 
    public void setCameraEnabled(boolean enabled) {
        mCameraEnabled.set(enabled);
    } 
 
    public void resetFrameCounter() { 
        mReportedFrameCount.set(0);
    } 
 
    public int getFrameCounter() { 
        return mReportedFrameCount.get();
    } 
 
    class Renderer implements GLSurfaceView.Renderer {
        private final static String VERTEX_SHADER =
            "attribute vec4 vPosition;\n" + 
            "attribute vec2 a_texCoord;\n" + 
            "varying vec2 v_texCoord;\n" +