Code example for EGL10

Methods: eglSwapBuffers

            glVertexAttribPointer(attribTexCoords, 3, GL_FLOAT, false,
                    TRIANGLE_VERTICES_DATA_STRIDE_BYTES, triangleVertices);
            glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
            boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
            return status;
        private FloatBuffer createMesh(int left, int top, float right, float bottom) {
            final float[] verticesData = {
                    // X, Y, Z, U, V 
                     left,  bottom, 0.0f, 0.0f, 1.0f,
                     right, bottom, 0.0f, 1.0f, 1.0f,
                     left,  top,    0.0f, 0.0f, 0.0f,
                     right, top,    0.0f, 1.0f, 0.0f,
Connect your IDE to all the code out there  Get Codota for Java