当前位置:网站首页>API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
2022-07-06 10:36:00 【hankern】
Set texture filtering mode .
1、GL_TEXTURE_MIN_FILTER
GL_TEXTURE_MIN_FILTER Value GL_NEAREST GL_LINEAR GL_NEAREST_MIPMAP_NEAREST GL_LINEAR_MIPMAP_NEAREST GL_NEAREST_MIPMAP_LINEAR GL_LINEAR_MIPMAP_LINEAR, Default GL_NEAREST_MIPMAP_LINEA
2、GL_TEXTURE_MAG_FILTER
GL_TEXTURE_MAG_FILTER Value GL_NEAREST GL_LINEAR, Default GL_LINEAR.
Used when sampling from texture “ Detail level ” When the function determines that the texture should be imaged , Will use “ Texture magnification ” function . It sets the texture magnification function to GL_NEAREST or GL_LINEAR.GL_NEAREST Often than GL_LINEAR faster , But it can generate texture images with sharper edges , Because the transition between texture elements is not so smooth .GL_ texture _MAG_ The initial value of the filter is GL_ linear .
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
边栏推荐
- MySQL21-用户与权限管理
- [after reading the series of must know] one of how to realize app automation without programming (preparation)
- MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
- [programmers' English growth path] English learning serial one (verb general tense)
- C miscellaneous dynamic linked list operation
- Implement sending post request with form data parameter
- MySQL22-逻辑架构
- 实现以form-data参数发送post请求
- MySQL24-索引的数据结构
- Isn't there anyone who doesn't know how to write mine sweeping games in C language
猜你喜欢
Mysql27 - Optimisation des index et des requêtes
MySQL23-存儲引擎
Mysql25 index creation and design principles
Record the first JDBC
MySQL25-索引的创建与设计原则
Typescript入门教程(B站黑马程序员)
软件测试工程师必备之软技能:结构化思维
高并发系统的限流方案研究,其实限流实现也不复杂
MySQL36-数据库备份与恢复
Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
随机推荐
MySQL25-索引的创建与设计原则
14 medical registration system_ [Alibaba cloud OSS, user authentication and patient]
UEditor国际化配置,支持中英文切换
MySQL24-索引的数据结构
用于实时端到端文本识别的自适应Bezier曲线网络
Download and installation of QT Creator
MySQL learning diary (II)
MySQL real battle optimization expert 08 production experience: how to observe the machine performance 360 degrees without dead angle in the process of database pressure test?
Pytoch LSTM implementation process (visual version)
Case identification based on pytoch pulmonary infection (using RESNET network structure)
MySQL底层的逻辑架构
Complete web login process through filter
Typescript入门教程(B站黑马程序员)
Ueeditor internationalization configuration, supporting Chinese and English switching
第一篇博客
Software test engineer development planning route
MySQL28-数据库的设计规范
MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
Use xtrabackup for MySQL database physical backup
软件测试工程师必备之软技能:结构化思维