prepare for Metal render backend
ugh Apple. how about you don't deprecate OpenGL instead?
This commit is contained in:
parent
4fe0e1d06a
commit
bb3ccedb29
6 changed files with 263 additions and 2 deletions
|
|
@ -72,7 +72,8 @@
|
|||
enum FurnaceGUIRenderBackend {
|
||||
GUI_BACKEND_SDL=0,
|
||||
GUI_BACKEND_GL,
|
||||
GUI_BACKEND_DX11
|
||||
GUI_BACKEND_DX11,
|
||||
GUI_BACKEND_METAL
|
||||
};
|
||||
|
||||
#ifdef HAVE_RENDER_SDL
|
||||
|
|
@ -83,10 +84,15 @@ enum FurnaceGUIRenderBackend {
|
|||
#define GUI_BACKEND_DEFAULT GUI_BACKEND_DX11
|
||||
#define GUI_BACKEND_DEFAULT_NAME "DirectX 11"
|
||||
#else
|
||||
#ifdef HAVE_RENDER_METAL
|
||||
#define GUI_BACKEND_DEFAULT GUI_BACKEND_METAL
|
||||
#define GUI_BACKEND_DEFAULT_NAME "Metal"
|
||||
#else
|
||||
#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL
|
||||
#define GUI_BACKEND_DEFAULT_NAME "OpenGL"
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// TODO:
|
||||
// - add colors for FM envelope and waveform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue