mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-22 20:25:28 +08:00
Comments
This commit is contained in:
@@ -193,9 +193,9 @@ glBindTexture(GL_TEXTURE_2D, 0);
|
||||
GLuint texture;
|
||||
glGenTextures(1, &texture);
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
//为当前绑定的纹理对象设置环绕、过滤方式
|
||||
// 为当前绑定的纹理对象设置环绕、过滤方式
|
||||
...
|
||||
//加载并生成纹理
|
||||
// 加载并生成纹理
|
||||
int width, height;
|
||||
unsigned char* image = SOIL_load_image("container.jpg", &width, &height, 0, SOIL_LOAD_RGB);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, image);
|
||||
|
@@ -39,6 +39,7 @@
|
||||
- 代码块不使用Tab标注,请用```式标注
|
||||
- 代码的语言需要在代码一开始的标记处标识出来,比如```c++
|
||||
- 请记得翻译注释
|
||||
- 注释与`//`间请加一个空格
|
||||
|
||||
## 图片
|
||||
|
||||
|
Reference in New Issue
Block a user