created uniform opengl usage for desktop and android