Q. Cross platform multimedia libraries
SDL - Simple DirectMedia Layer
Simple DirectMedia Layer (SDL) is a cross-platform software
development library designed to provide a hardware abstraction layer
for computer multimedia hardware components. Software developers can
use it to write high-performance computer games and other multimedia
applications that can run on many operating systems such as Android,
iOS, Linux, macOS, and Windows.
To install on RedHat/Linux/CentOS
dnf install SDL2-devel
Allegro is a software library for video game development.
The functionality of the library includes support for basic 2D
graphics, image manipulation, text output, audio output, MIDI music,
input and timers, as well as additional routines for fixed-point and
floating-point matrix arithmetic, Unicode strings, file system
access, file manipulation, data files, and 3D graphics. The library
is written in the C programming language and designed to be used with
C, C++, or Objective-C, with bindings available for Python, Lua,
Scheme, D, Go, and other languages. Allegro comes with extensive
documentation and many examples.
If you are using Java, java.awt.Graphics is cross-platform and can do
standard 2D graphics.
On Windows, GDI+ is a good 2D graphics library.