Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 15, 2025
1 parent e9f9219 commit d866946
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webgl/lessons/ko/webgl1-to-webgl2.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ vertex array objects가 없던 WebGL1에서는, attributes에 대한 모든 데
{ enable: ?, size: ?, type: ?, normalize: ?, stride: ?, offset: ?, buffer: ?, },
],
},
}
}

`gl.vertexAttribPointer`, `gl.enableVertexAttribArray`, `gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, ??)`처럼 함수 호출이 전역 상태에 영향을 주었습니다.
각각의 원하는 것을 그리기 전에, 모든 attribute들을 초기화해야 했었습니다.
Expand Down
2 changes: 1 addition & 1 deletion webgl/lessons/pt-br/webgl1-to-webgl2.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ foram para o estado WebGL global. Você pode imaginar isso assim
{ enable: ?, size: ?, type: ?, normalize: ?, stride: ?, offset: ?, buffer: ?, },
],
},
}
}

Chamar funções como `gl.vertexAttribPointer`,` gl.enableVertexAttribArray` e
`gl.bindBuffer (gl.ELEMENT_ARRAY_BUFFER, ??)` afetariam esse estado global.
Expand Down
2 changes: 1 addition & 1 deletion webgl/lessons/zh_cn/webgl1-to-webgl2.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ WebGL1中许多特性是可选扩展。在WebGL2中,以下所有的都是标
{ enable: ?, size: ?, type: ?, normalize: ?, stride: ?, offset: ?, buffer: ?, },
],
},
}
}

调用像`gl.vertexAttribPointer``gl.enableVertexAttribArray`
`gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, ??)`会影响全局状态。在绘制你想要绘制的事情之前,你需要设置所有属性,如果你绘制索引数据,你需要设置`ELEMENT_ARRAY_BUFFER`
Expand Down

0 comments on commit d866946

Please sign in to comment.