Преглед на файлове

Document Mesh.drawmode (#9873)

* add docs for mesh.drawMode and constants

* fix whitespace

* and fix typo
aardgoose преди 8 години
родител
ревизия
f9e7a1f794
променени са 3 файла, в които са добавени 30 реда и са изтрити 0 реда
  1. 24 0
      docs/api/constants/DrawModes.html
  2. 5 0
      docs/api/objects/Mesh.html
  3. 1 0
      docs/list.js

+ 24 - 0
docs/api/constants/DrawModes.html

@@ -0,0 +1,24 @@
+<!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>

+ 5 - 0
docs/api/objects/Mesh.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>
 

+ 1 - 0
docs/list.js

@@ -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" ],