Updated OpenGL implementation to integrate with directx 11