I need to create a simple drawing program in c for graphs, i.e. nodes and lines, thus I would also need to capture events. I would need to run this in Linux and Windows ( though not a requisite for Windows for now). I haven’t done any drawing in c before (a little opengl a long time ago), I am guessing my options would be gtk, sdl or opengl. What would be the easiest way to do this?
Share
You may use GTK+. For graphs, cairo will be enough (it’s the library used by GTK for drawing). But if you need nodes, lines and events (like moving stuff you have drawn), you’ll need to use a canvas, like GooCanvas. You may also use GTK and Clutter.