
opengl-es
Huoon
这个作者很懒,什么都没留下…
展开
-
OpenGL ES 纹理贴图
顶点坐标和纹理坐标在没有投影矩阵的情况下,我们要传给顶点着色器的坐标值都在(-1,1)范围内,超出了这个范围将不可见。因此对于一个四边形的绘制,我们经常看到下面的顶点坐标: GLfloat vertices[] = { // Positions // Texture Coords -0.5, -0.5, 0, 0.0, 0.0, //左下原创 2017-07-23 16:57:58 · 922 阅读 · 0 评论 -
glDeleteTextures函数对内存的优化
函数介绍void glDeleteTextures( GLsizei n, const GLuint * textures);从字面意思来理解,该函数是用来删除纹理的。通过官方文档是这样介绍的: glDeleteTextures deletes n textures named by the elements of the array textures. After a texture is d原创 2017-08-21 22:57:24 · 13067 阅读 · 9 评论