OpenGL 3.0中glDrawPixels的替代品? [英] An alternative to glDrawPixels in OpenGL 3.0?

查看:541
本文介绍了OpenGL 3.0中glDrawPixels的替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我知道glDrawPixels已被弃用.是否有功能可以完成相同的功能? 我本来想使用纹理,但它们会被当前矩阵修改,这与glDrawPixels绘制的像素不同.

So I know that glDrawPixels is deprecated. Is there any function that does the same thing? I thought of using textures, but they are modified by the current matrix, unlike pixels that are drawn by glDrawPixels.

推荐答案

我考虑使用纹理,但是它们已被当前矩阵修改

I thought of using textures, but they are modified by the current matrix

在3.0中不推荐使用当前矩阵",在3.1+中也将其删除.因此,如果您不使用glDrawPixels,则也不会使用矩阵函数.因此,无需担心.

The "current matrix" is deprecated in 3.0 and removed in 3.1+ as well. So if you're not using glDrawPixels, you wouldn't be using matrix functions either. So it's nothing to be concerned about.

这篇关于OpenGL 3.0中glDrawPixels的替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆