What is the fastest way to draw a 2D array of color triplets on screen?

前端 未结 6 1412
星月不相逢
星月不相逢 2021-02-14 18:24

The target language is C/C++ and the program has only to work on Linux, but platform independent solutions are preferred obviously. I run Xorg, XVideo and OpenGL are available.<

6条回答
  •  不思量自难忘°
    2021-02-14 18:27

    Other options apart from SDL (as mentioned)

    • Cairo surfaces with glitz (in C, works on all plaforms but best in Linux)
    • QT Canvas (in C++, multiplaform)
    • OpenGL raw API or QT OpenGL (You need to know openGL)
    • pure Xlib/XCB if you want to take into account non-opengl plaforms

    My suggestion

    1. QT if you prefer C++
    2. Cairo if you prefer C

提交回复
热议问题