提交 f9e7a1f7 编写于 作者: A aardgoose 提交者: Mr.doob

Document Mesh.drawmode (#9873)

* add docs for mesh.drawMode and constants

* fix whitespace

* and fix typo
上级 32867de6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>Draw Mode Constants</h1>
<h2>Draw Mode</h2>
<div>
THREE.TrianglesDrawMode<br />
THREE.TriangleStripDrawMode<br />
THREE.TriangleFanDrawMode
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
</body>
</html>
......@@ -58,6 +58,11 @@
Undefined by default, but rebuilt [page:Mesh.updateMorphTargets updateMorphTargets].
</div>
<h3>[property:Integer drawMode]</h3>
<div>
Determines how the mesh triangles are constructed from the vertices. See the draw mode [page:DrawModes constants] for all possible values. Default is [page:DrawModes TrianglesDrawMode].
</div>
<h2>Methods</h2>
......
......@@ -10,6 +10,7 @@ var list = {
"Reference": {
"Constants": [
[ "CustomBlendingEquation", "api/constants/CustomBlendingEquations" ],
[ "DrawModes", "api/constants/DrawModes" ],
[ "GLState", "api/constants/GLState" ],
[ "Materials", "api/constants/Materials" ],
[ "ShadowingTypes", "api/constants/ShadowingTypes" ],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册