OpenGL - draw pixels to screen?

前端 未结 4 1553
南笙
南笙 2021-01-01 00:06

I want to draw a 2D array of pixel data (RGB / grayscale values) on the screen as fast as possible, using OpenGL. The pixel data changes frequently.

I had hoped that

4条回答
  •  既然无缘
    2021-01-01 00:26

    Maybe glDrawPixels is the function you are looking for? Though if the data is static it would be better to create a texture with it, and then draw that each frame.

提交回复
热议问题