From 4e67da57a7a09cd9382670338e4585a5b441cf33 Mon Sep 17 00:00:00 2001 From: Meow J Date: Tue, 26 Jul 2016 22:43:45 +0800 Subject: [PATCH] Comments --- docs/01 Getting started/06 Textures.md | 4 ++-- styleguide.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/01 Getting started/06 Textures.md b/docs/01 Getting started/06 Textures.md index 02966cd..3a71d26 100644 --- a/docs/01 Getting started/06 Textures.md +++ b/docs/01 Getting started/06 Textures.md @@ -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); diff --git a/styleguide.md b/styleguide.md index 7e4f870..39bfd26 100644 --- a/styleguide.md +++ b/styleguide.md @@ -39,6 +39,7 @@ - 代码块不使用Tab标注,请用```式标注 - 代码的语言需要在代码一开始的标记处标识出来,比如```c++ - 请记得翻译注释 +- 注释与`//`间请加一个空格 ## 图片