I have a library that makes it easy to use Dear ImGui in an MVVM way (https://github.com/KallDrexx/ImGuiHandler). One of benefits of this is I have a
ImguiHandler.Monogame project which has all the connective pieces to hook Dear ImGui up with Monogame. In order to do that though my .net standard 2.0 library needs access to MonoGame, so I can access
SamplerState, and other MG specific data structures.
Right now I have my MG library flagged as preview because it links directly against DesktopGL, which works fine for my very specific purposes.
However, I don’t understand how I’m supposed to allow my library to be renderer/backend agnostic. For example, what happens if someone wants to use this library in an IOS, Android, or UWP product? I assume it won’t work since the library is linked to
Monogame.Framework.DesktopGL while the actual game is linked to
MonoGame.Framework.Ios. Am I wrong about that?
It seems like
MonoGame.Framework.Portable was meant to address that, but that nuget package wasn’t upgraded to 3.8.
Am I missing something about how to generalize this nuget project?