Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Metal support to MinimalScene and Qt Application (#323)
* [Metal] Add Metal support to MinimalScene and Qt Application Allow MinimalScene to use either OpenGL or Metal render systems Add classes to abstract out render hardware interfaces: - IgnCameraTextureRhi - RenderThreadRhi - TextureNodeRhi Add implementations for OpenGL and Metal in: - MinimalSceneRhiOpenGL - MinimalSceneRhiMetal - Modify the existing MinimalScene class to forward rendering calls to the (virtual) render hardware interface functions. - Modify plugin CMakeLists.txt to conditionally compile Metal support if the platform is macOS - Update Application.cc to support either OpenGL or Metal Refactor MinimalScene to use GraphicAPI - Use the GraphicsAPI enum to set the choice of graphics interface (OpenGL or Metal). - Change the MinimalScene plugin element to <graphics_api>...</graphics_api> Add documentation and confirm to code style - Document the OpenGL and Metal render interface classes - Revert default engine to ogre Set graphics API to Metal for macOS, otherwise use OpenGL - Update Application.cc to only use Metal for macOS - Fix issues with code check Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> Co-authored-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
- Loading branch information