opengl es 2中缺少glMapBuffer [英] glMapBuffer is missing from opengl es 2

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

问题描述

opengl es 2.0为什么缺少glMapBuffer?我们谁可以访问缓冲区数据以有效地对其进行更改?只有glBufferSubData是修改缓冲区的最佳方法吗?

Why glMapBuffer is missing from opengl es 2.0? Who we can get access to buffer data to change it efficiently? Only glBufferSubData is the best way to modify the buffer?

推荐答案

glMapBuffer扩展,不是核心规范的一部分.绝大多数设备(所有iOS和大多数Andriod)都提供了扩展程序,但这不是必需的.上传VBO数据的唯一核心方法是使用glBufferDataglBufferSubData.

glMapBuffer is an extension in ES 2.0, not part of the core spec. The vast majority of devices (all iOS and most Andriod) offer the extension, but it is not required. The only core way to upload VBO data is with glBufferData, or glBufferSubData.

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

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