摘要: 步骤如下:1. 首先启用2D纹理, 不启用会发现纹理区域是黑色的 glEnable(GL_TEXTURE_2D)2. 生成纹理 glGenTextures( 1, &m_nTextureID ) glBindTexture(1, &m_nTextureID) glTexImage2D(G... 阅读全文
posted @ 2014-10-19 21:37 light_world 阅读(795) 评论(0) 推荐(0) 编辑