- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * * * * * * * * * * * * * * * * * * * * * The first step in creating texture objects is to have OpenGL reserve some indices for your objects. glGenTextures() will request n texture ids and return those values back to you in texIds. To begin defining a texture object, you call glBindTexture() with the id of the object you want to create. The target is one of GL_TEXTURE_{123}D(). All texturing calls become part of the object until the next glBindTexture() is called. To have OpenGL use a particular texture object, call glBindTexture() with the target and id of the object you want to be active. To delete texture objects, use glDeleteTextures( n, *texIds ), where texIds is an array of texture object identifiers to be deleted. * Specifying the texels for a texture is done using the glTexImage{123}D() call. This will transfer the texels in CPU memory to OpenGL, where they will be processed and converted into an internal format. The array of texels sent to OpenGL with glTexImage*() must be a power of two in both directions. An optional one texel wide border may be added around the image. This is useful for certain wrapping modes. The level parameter is used for defining how OpenGL should use this image when mapping texels to pixels. Generally, you’ll set the level to 0, unless you’re using a texturing technique called mipmapping, which we’ll discuss in a few slides. * * * If your image does not meet the power of two requirement for a dimension, the gluScaleImage() call will resample an image to a particular size. It uses a simple box filter to interpolate the new images pixels from the source image. Additionally, gluScaleImage() can be used to convert from one data type ( i.e. GL_FLOAT ) to another type, which may better match the internal format in which OpenGL stores your texture. Note that use of gluScaleImage() can also save memory. * * * * * You can have OpenGL automatically generate texture coordinates for vertices by using the glTexGen() and glEnable
您可能关注的文档
最近下载
- 奶茶店兼职劳务合同模板(3篇).docx
- OTIS奥的斯XIOTIS西子奥的斯标准ACD4MR电气原理图XAA21310AT注解版.pdf
- 健康体重课件小学生版必威体育精装版完整版本.pptx VIP
- 内分泌性高血压筛查专家共识(2025版).pdf VIP
- 高级教师职称面试讲课答辩题目及答案(分五类共60题).docx VIP
- 全国智能制造应用技术技能大赛理论知识题库资料(核心500题).pdf VIP
- 安全生产台账建立与完善策略.docx VIP
- 矿山井巷施工施工组织设计 (1).pdf VIP
- CRM坐席操作手册.pdf VIP
- 2025年新高考物理压轴题专项训练09 电磁感应中的单双棒问题 含解析 .docx VIP
文档评论(0)