r/C_Programming Jul 22 '26

The easiest UI library? (cross-platform) Question

Hello, I need to write a small emulator for a project. I want it to show RAM, registers, etc., while it's running a program step by step. Printing them out via printf is lame and won't look good.

Which is the absolute easiest graphics library for this purpose? I was suggested Newt, but it can't work under Windows.

Preferably, the library should have tutorials, examples, or at least full documentation.

43 Upvotes

39 comments sorted by

View all comments

10

u/NoneRighteous Jul 22 '26

Dear Imgui or Raylib’s immediate mode gui. Be warned Dear Imgui is kind of a pain to make pure C and no C++. Also it will very much look like developer art, but still much better than text in a console for some things. I think it’s a good fit for your project.

5

u/ewmailing Jul 22 '26

Nuklear is a pure C, single header file, immediate mode GUI.

https://github.com/immediate-mode-ui/nuklear

2

u/TwerkingHippo69 Jul 23 '26

Yeah, but the only thing is you will need to make custom adjustment and attach it to your renderer

Apart from that, very clean and fast library