r/C_Programming • u/cdunku • Jul 29 '26
What GUI library would one recommend for a cross-platform emulator?
Hello,
I am writing a cycle-accurate Commodore 64 emulator (using the C2X standard of C) and I was planning on using a minimalistic yet modern and functional GUI library. I will be using SDL3 for the I/O and Graphics, but I have yet to decide which library I should use for my GUI that can be easily used cross-platform.
What am I actually aiming with this emulator?
I plan on the emulator to be used mainly for debugging, testing software and custom ROMs people have made. Additionally, I plan to implement so that every chip and component can be debugged independently (VIC-II, CPU, Sprite, Memory Map, Bus activity, etc.). Furthermore I plan to actually compare my test results while developing this emulator to a real Commodore 64, so that the emulator can be as accurate as possible when it comes to specific revisions and chip types (like PAL and NTSC for the VIC-II). I also plan to add an “Education mode” where all the information regarding the C64 can be taught through an interactive and readable UI.
I am not familiar with GUI libraries, that is why I mentioned what I am aiming for with my emulator.
Thank you!
2
u/mikeblas Jul 29 '26
Sounds like a very ambitious project, particularly for someone so new to programming. How far along are you just now? Is it you alone, or are you with a team of developers?
7
u/DescriptionOptimal15 Jul 29 '26
Imgui
1
u/LooksForFuture Jul 30 '26
Go with nuklear. I'm using for my own game engine. It's really good, and has all the things you need.
1
u/Brilliant-Froyo54 Jul 30 '26
Some immediate UI framework is probably best, since you already use SDL for graphics. The mayor ones are nuklear and imgui, but you can use smaller libs such as microui, leanUI. If you want to build UI widgets somewhat yourself, you can use Nic Barkers Clay which is mainly a layout library but it does have primitive input handling and other things that make it very easy to build simple widgets yourself.
If you want a retained mode UI (maybe in a separate window to the emulator anyway) I suggest IUP.
1
u/grimvian Jul 31 '26
Of course Raylib graphics.
1
u/kolorcuk Aug 02 '26
Gtk
0
u/duane11583 Jul 29 '26
Tk from py-tk or tcl-tk
2
u/[deleted] Jul 30 '26
[removed] — view removed comment
0
u/[deleted] Jul 29 '26
[deleted] — view deleted comment