added helper methods for OpenGL ES 2.0