basic iOS gles2 implementation