As a programming library which source files will be compiled together with application source files into the final executable, kindly consider licensing it under LGPL.
What do you mean by which source files will be compiled?
I did license it with AGPL-3, so if anyone makes changes or improvements to the library, they should make these changes open-source.
By the nature of ImGui, any application program will look like ImGuiDemo.pas:
- uses PasImGui.impl.pas and CImGui.impl.OpenGL3.pas, which are compiled into the application executable
- make the same SDL_XXX and ImGui_Impl_XXX startup and shutdown calls
The application main loop is different and specific to the application, of course.
Under (A)GPL, the source of the application program itself is required to be under (A)GPL too. In particular, to comply with AGPL, the application source files are required to be published.
In contrast, with LGPL (possibly with a static linking exception as with Free Pascal),
- the source files of the application program can be under another license, meaning, no requirement to publish source code
- improvements to the library, e.g. implementing a new widget, are under LGPL, meaning, source code needs to be published
See Free Pascal's home page:
The packages and runtime library come under a modified Library GNU Public License to allow the use of static libraries when creating applications. The compiler source itself comes under the GNU General Public License.