Hey, I'm building an SDL2 + Opengl 3.x GUI system that uses HTML. Something I'd like to do is create a library or a dll in order to make it easy for people to use my software without having to push all my .h and .cpp files into their code base.
This is the code (there's lots of things I need to work on... memory management, using smart-pointers instead of the pointers I do use ect. )
I'm in the process of building out a subset of html elements and adding css for the box model and other styling considerations.
I'm working in VS2012, can any one teach me how to create this into a library? Also any other advice would be nice... but it is currently a bit hard to understand in the code.
For those that want to know how it should work:
The user of this system will create a GUIFactory.
Use the factory to create a GUIManager by handing the factory an HTML/XML file
Then pass SDL2 events to the GUIManager and call the managers draw function.
Thanks a lot in advance.