I am trying to learn metal and since I am already familiar with C++, I am trying to do it using metal-cpp. I am not an experienced macOS developer but I have worked in Xcode in the past in projects using OpenGL and C++ as the main language.
My question is how to set up a project in C++ and use Metal to render to a window or view. I have found some tutorials on how to do this in Swift or Objective-C but nothing in C++. A couple of years ago, I remember doing something similar with OpenGL and if I recall correctly, the view had to be set in Objective-C and then pass the OpenGL context to C++.
Would this be a good approach for this case (set up the view in Swift/Obj-C and then pass a device to C++)? I am also a bit lost with what type of project or other files I would need to do this (i.e. storyboards, etc.). As of now I just have a command-line tool project with the Foundation, Mmetal, MetalKit and QuartzCore frameworks linked; plus metal-cpp linked and compiling too.