Cross-platform drawing library

后端 未结 11 1199
独厮守ぢ
独厮守ぢ 2020-12-24 10:01

I\'ve been looking for a good cross-platform 2D drawing library that can be called from C++ and can be used to draw some fairly simple geometry; lines, rectangles, circles,

11条回答
  •  盖世英雄少女心
    2020-12-24 10:44

    You might use Allegro 5 (since SDL and SFML are mentioned). This provides all of the platforms you require (and more) and can render shapes and save to PNG. Version 5 has a much improved API and hardware acceleration. With any of these low level cross platform libraries you'd have to find your own charting solution.

    I put some notes on my blog about Allegro and using it on the Mac.

提交回复
热议问题