OpenGl ES 中的 glMultiTexCoord [英] glMultiTexCoord in OpenGl ES

查看:77
本文介绍了OpenGl ES 中的 glMultiTexCoord的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下如何使用 glMultiTexCoord() 与 glTexCoordPointer() 进行比较?

Can anyone explain how to use glMultiTexCoord() in comparison with glTexCoordPointer()?

推荐答案

glTexCoordPointer() 对应glMultiTexCoord() 函数.

The size argument to glTexCoordPointer() corresponds to the suffix number of the glMultiTexCoord() function.

所以一堆调用,例如glMultiTexCoord3fv() 将替换为对 glTexCoordPointer(3, GL_FLOAT, ...) 的单个调用.

So a bunch of calls to e.g. glMultiTexCoord3fv() would be replaced by a single call to glTexCoordPointer(3, GL_FLOAT, ...).

这里,3 来自后缀 '3'(大小说明符),GL_FLOAT 来自后缀 'f'(类型说明符).

Here, the 3 is from the suffix '3' (size specifier), and the GL_FLOAT is from the suffix 'f' (type specifier).

这篇关于OpenGl ES 中的 glMultiTexCoord的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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