Selaa lähdekoodia

Some documentation styling.
Still not done.

Mr.doob 13 vuotta sitten
vanhempi
commit
d18aab5913
3 muutettua tiedostoa jossa 62 lisäystä ja 5 poistoa
  1. 21 1
      docs/api/cameras/Camera.html
  2. 20 4
      docs/index.html
  3. 21 0
      docs/styles.css

+ 21 - 1
docs/api/cameras/Camera.html

@@ -5,7 +5,27 @@
 	<body>
 	<body>
 		<h1>Camera</h1>
 		<h1>Camera</h1>
 
 
-		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ullamcorper, nibh vel semper bibendum, lacus ante sodales nibh, vel pharetra orci orci ut eros. Donec vehicula, nibh eget auctor aliquet, nulla tellus consequat ipsum, id blandit nisl lectus nec justo. Nunc tincidunt pretium vulputate. Suspendisse sollicitudin dui id turpis egestas non gravida arcu suscipit. Vestibulum mi quam, laoreet quis venenatis a, pharetra id nulla. Vestibulum sit amet orci purus. In blandit sapien lacus. Phasellus cursus consequat lectus, nec ultrices lorem molestie a. Ut in feugiat lectus. Phasellus auctor ultrices metus, accumsan convallis tellus pulvinar sed. Sed fringilla urna et urna auctor sit amet rutrum est tempor.
+		 Abstract base class for cameras.
+
+		<h2>Constructor</h2>
+
+		<code>
+		Camera()
+		</code>
+
+		<h2>Properties</h2>
+
+		<h3>matrixWorldInverse <a href="../core/Matrix4.js">Matrix4</a></h3>
+		<h3>projectionMatrix <a href="../core/Matrix4.js">Matrix4</a></h3>
+		<h3>projectionMatrixInverse <a href="../core/Matrix4.js">Matrix4</a></h3>
+
+
+		<h2>Methods</h2>
+
+		<h3>lookAt( vector <a href="../core/Vector3.js">Matrix4</a> )</h3>
+
+		Orient camera to look at Vector3()
+
 
 
 	</body>
 	</body>
 </html>
 </html>

+ 20 - 4
docs/index.html

@@ -4,6 +4,9 @@
 		<style>
 		<style>
 			body {
 			body {
 				margin: 0;
 				margin: 0;
+				padding: 0;
+				color: #555;
+				font-family: Arial, sans-serif;
 			}
 			}
 
 
 			#panel	{
 			#panel	{
@@ -18,7 +21,7 @@
 
 
 				padding: 20px 0px 0px 20px;
 				padding: 20px 0px 0px 20px;
 
 
-				font-size: 18px;
+				font-size: 15px;
 
 
 			}
 			}
 
 
@@ -32,13 +35,26 @@
 	<body>
 	<body>
 		<div id="panel">
 		<div id="panel">
 
 
+			Core
+			<ul>
+				<li><a href="api/cameras/Camera.html" target="page">Camera</a></li>
+				<li><a href="api/cameras/PerspectiveCamera.html" target="page">PerspectiveCamera</a></li>
+				<li><a href="api/cameras/OrtographicCamera.html" target="page">OrtographicCamera</a></li>
+			</ul>
+
 			Cameras
 			Cameras
 			<ul>
 			<ul>
-				<li><a href="api/cameras/Camera.html">Camera</a></li>
-				<li><a href="api/cameras/PerspectiveCamera.html">PerspectiveCamera</a></li>
-				<li><a href="api/cameras/OrtographicCamera.html">OrtographicCamera</a></li>
+				<li><a href="api/cameras/Camera.html" target="page">Camera</a></li>
+				<li><a href="api/cameras/PerspectiveCamera.html" target="page">PerspectiveCamera</a></li>
+				<li><a href="api/cameras/OrtographicCamera.html" target="page">OrtographicCamera</a></li>
 			</ul>
 			</ul>
 
 
+			Lights
+			<ul>
+				<li><a href="api/cameras/Camera.html" target="page">Camera</a></li>
+				<li><a href="api/cameras/PerspectiveCamera.html" target="page">PerspectiveCamera</a></li>
+				<li><a href="api/cameras/OrtographicCamera.html" target="page">OrtographicCamera</a></li>
+			</ul>
 		</div>
 		</div>
 
 
 		<iframe id="page" src="api/cameras/Camera.html"></iframe>
 		<iframe id="page" src="api/cameras/Camera.html"></iframe>

+ 21 - 0
docs/styles.css

@@ -1,3 +1,24 @@
+body {
+	margin: 0;
+	padding: 0;
+	color: #555;
+	font-family: Arial, sans-serif;
+	font-size: 15px;
+}
+
 h1 {
 h1 {
 	color: #ff0000;
 	color: #ff0000;
+	font-size: 25px;
+	margin-top: 20px;
+}
+
+h2 {
+	color: #999;
+	font-size: 18px;
+	margin-top: 40px;
+}
+
+h3 {
+	font-size: 15px;
+	margin-top: 30px;
 }
 }