Migrating GEM to openGL ES