QUItCoding / qnanopainter

Library for implementing OpenGL accelerated Qt (Quick) C++ UI components.
http://quitcoding.com
Other
405 stars 79 forks source link

Any plans to migrate to CMake? #53

Open daljit97 opened 4 years ago

daljit97 commented 4 years ago

Since Qt6 is adopting CMake as its default build system, it would be nice if this library is migrated to CMake. Also I think it's best if nanovg is not included in the project and instead it should be listed as an external dependency.

QUItCoding commented 4 years ago

We are not using CMake (yet!) so don't have much experience about it. If someone wants to make a patch for CMake we would gladly take it in if it works besides qmake. And yes, nanovg could be an external dependency / git submodule. But it needs to be our fork (https://github.com/QUItCoding/nanovg/) as there are additions which are not in upstream version like nvgBeginFrameAt() and support for adjusting paint antialiasing amount. Opted to include proper version inside but either way suits us.

Regarding Qt6, OpenGL should work as-is but best way forward there would be RHI port (https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/rhi/) which would make QNanoPainter compatible with not just OpenGL but also Vulkan, Metal & Direct3D. Patches highly welcome for this too =)