Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Simple, 2d cross-platform graphics library for c or c++? [closed]

What about SDL?

Perhaps it's a bit too complex for your needs, but it's certainly cross-platform.


Am I missing something to wonder why noone suggests OpenGL? To use it for 2d would be very simple. The OP only wants to color a pixel. It doesn't get simpler than glBegin/glColor/glVertex/glEnd.


  • Qt 5
  • GTK+
  • Cairo
  • and many many more ...

[In no particular order.] However, if you have any other requirements, let us know. BTW: I am not just posting results of a Google query here, I have used all of these (and SDL -- wrote my first few games in SDL :) and I'd say without a set of requirements, it's very difficult to choose among the ones listed.


Heavy-weight:

  • GTK
  • QT
  • WxWidgets

Lightweight:

  • FLTK
  • Fox
  • Tk
  • Lua IUP
  • Ultimate++
  • dlib

Drawing frameworks without GUI widgets:

  • SDL
  • Cairo