- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
OPENGL ES中几个重要函数详细说明
OPENGL ES中几个重要函数详细说明 时间: 2010-04-30 14:47 点击: 2012 次 函数名:glVertexPointer void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer) Parameters size Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. type Specifies the 函数名:glVertexPointervoid glVertexPointer(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)Parameterssize Specifies the number of coordinates per vertex. Must be 2, 3, or 4. Theinitial value is 4.type Specifies the data type of each vertex coordinate in the array. Symbolicconstants GL_BYTE, GL_SHORT, and GL_FIXED, are accepted. However, theinitial value is GL FLOAT.The common profile accepts the symbolic constant GL FLOAT as well.stride Specifies the byte offset between consecutive vertices. If stride is 0, thevertices are understood to be tightly packed in the array. The initial valueis 0.pointer Specifies a pointer to the first coordinate of the first vertex in the array.The initial value is 0. 参数:size:指定了每个顶点对应的坐标个数,只能是2,3,4中的一个,默认值是4type:指定了数组中每个顶点坐标的数据类 型,可取常量:GL_BYTE, GL_SHORT,GL_FIXED,GL_FLOAT;stride:指定了连续顶点间的字节排列方式,如果为0,数组中的顶点就会被认为是按照紧凑方式排列的,默认值为0pointer:制订了数组中第一个顶点的首地址,默认值为0,对于我们的android,大家可以不 用去管什么地址的,一般给一个IntBuffer就可以了。DescriptionglVertexPointer specifies the location and data of an array of vertex coordinatesto use when rendering. size specifies the number of coordinates per vertex and typethe data type of the coordinates. stride specifies the byte stride from one vertex tothe next allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations.)When a vertex array is specified, size, type, stride, and pointer are saved asclient-side state.If the vertex array is enabled, it is used when glDrawArrays, or glDrawElementsis called. To enable and disable the vertex array, call glEnableClientStateand glDisableClientState with the argume
您可能关注的文档
最近下载
- 电动叉车安全风险点告知牌.docx VIP
- AQL抽样标准培训.pptx VIP
- 2025广东中山市东凤镇污水处理有限责任公司管网维护人员招聘6人笔试模拟试题及答案解析.docx VIP
- 家具设计与工艺ppt-板式家具结构与生产工艺.pdf VIP
- 2025河北建材职业技术学院招聘106人笔试参考题库附答案解析.docx VIP
- 部编版语文四年级下册第四单元大单元教学设计核心素养目标.pdf VIP
- 初中数学常用二级结论知识点总结.doc VIP
- 我的师德小故事 .docx VIP
- 主要股东或出资人信息及投标人基本情况表模板.docx VIP
- 新型独脚金内酯类似物的结构设计、合成及对水稻生长调控的多维度探究.docx
文档评论(0)