3d engine for Metal/OpenGL ES