问题标签 [gldrawpixels]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
228 浏览

python - pyopengl 上的 gldrawpixels 没有画任何东西?

我创建要使用 glDrawPixels 绘制的像素缓冲区。代码运行正常,pygame 窗口出现。但是什么都没有画出来,只显示了一个空白的白色窗口。即使我更改缓冲区的值,它也不会绘制任何东西。

这是它运行时显示的内容

有什么帮助吗?