lc-soft / LCUI

C library for building user interfaces
https://lcui-dev.github.io
MIT License
4.13k stars 355 forks source link

GPU Backend #273

Open CycloneRing opened 2 years ago

CycloneRing commented 2 years ago

Hi, Any plan for GPU support like DirectX11? or even better a backend that allow us to add our graphic api like ImGui

Thanks

lc-soft commented 2 years ago

Adding GPU backend support to LCUI's graphics library is expensive, so I plan to make LCUI support drawing using other open source graphics libraries.

I've improved the graphics library of LCUI in recent weeks and wrote an example program to draw graphics using the Cairo graphics library.

https://github.com/lc-soft/LCUI/tree/add-cairo-example/lib/pandagl/examples/cairo

I also have plans to write an example to draw UI widgets using Cairo, but it may take a long time.

KnIfER commented 1 year ago

why not try the direct2d-based vuilib, it's a student project but is both pretty and performant!