当前位置:网站首页>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);
边栏推荐
- 16 medical registration system_ [order by appointment]
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
- Ueeditor internationalization configuration, supporting Chinese and English switching
- Just remember Balabala
- Advantages and disadvantages of evaluation methods
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
- MySQL实战优化高手05 生产经验:真实生产环境下的数据库机器配置如何规划?
- Chrome浏览器端跨域不能访问问题处理办法
- pytorch的Dataset的使用
猜你喜欢
Export virtual machines from esxi 6.7 using OVF tool
In fact, the implementation of current limiting is not complicated
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
14 medical registration system_ [Alibaba cloud OSS, user authentication and patient]
Water and rain condition monitoring reservoir water and rain condition online monitoring
Adaptive Bezier curve network for real-time end-to-end text recognition
Introduction tutorial of typescript (dark horse programmer of station B)
C miscellaneous shallow copy and deep copy
15 medical registration system_ [appointment registration]
实现微信公众号H5消息推送的超级详细步骤
随机推荐
MySQL实战优化高手05 生产经验:真实生产环境下的数据库机器配置如何规划?
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
A necessary soft skill for Software Test Engineers: structured thinking
Opencv uses freetype to display Chinese
C language string function summary
Mysql32 lock
Complete web login process through filter
【C语言】深度剖析数据存储的底层原理
Windchill configure remote Oracle database connection
Nanny hand-in-hand teaches you to write Gobang in C language
Windchill配置远程Oracle数据库连接
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
Export virtual machines from esxi 6.7 using OVF tool
Set shell script execution error to exit automatically
How to build an interface automation testing framework?
Google login prompt error code 12501
软件测试工程师发展规划路线
MySQL combat optimization expert 06 production experience: how does the production environment database of Internet companies conduct performance testing?
在jupyter NoteBook使用Pytorch进行MNIST实现
Mysql30 transaction Basics