Browse Source

Update Sprite.html

gero3 11 years ago
parent
commit
38120f02ad
1 changed files with 20 additions and 9 deletions
  1. 20 9
      docs/api/objects/Sprite.html

+ 20 - 9
docs/api/objects/Sprite.html

@@ -11,17 +11,26 @@
 
 		<h1>[name]</h1>
 
-		<div class="desc">todo</div>
+		<div class="desc">A sprite is an plane in an 3d scene which faces always towards the camera. </div>
+
+                <h2>Example</h2>
+                
+                <code>
+                var map = THREE.ImageUtils.loadTexture( "sprite.png" );
+                var material = new THREE.SpriteMaterial( { map: map, color: 0xffffff, fog: true } );
+                var sprite = new THREE.Sprite( material );
+                scene.add( sprite );
+                </code>
 
 
 		<h2>Constructor</h2>
 
-		<h3>[name]([page:todo material])</h3>
+		<h3>[name]([page:Material material])</h3>
 		<div>
-		material -- todo
+                material — An instance of [page:Material] (optional).
 		</div>
 		<div>
-		todo
+		This creates a new sprite with an specific material.
 		</div>
 
 
@@ -29,13 +38,15 @@
 
 		<h3>.[page:SpriteMaterial material]</h3>
 		<div>
-		todo
+		An instance of [page:Material], defining the object's appearance. Default is a [page:SpriteMaterial] which is a white plane.
 		</div> 
+-
+           	<h2>Methods</h2>
 
-		<h3>.[page:Float rotation]</h3>
-		<div>
-		todo
-		</div>
+                <h3>.clone()</h3>
+                <div>
+                This creates a new clone of the sprite.
+                </div>
 
 
 		<h2>Source</h2>