Skip to content
Browse files

add docs, release script and updated the front page demo

  • Loading branch information...
1 parent be6a144 commit c60b97617fa3ca9372bad84d6c443202491d2d7c @cathyatseneca committed Feb 21, 2010
View
1 .gitignore
@@ -0,0 +1 @@
+.DS_Store
View
2 canvas3dapi-dev/J3DXplorer/J3DXplorer.html
@@ -9,8 +9,8 @@
<body>
<canvas id="J3DXplorer" width="500" height="500">
- <img src="frontpagess.png"></img>
</canvas>
+ <img id="screenshot" src="frontpagess.png" width="500", height="500" style="display:none"></img>
<font face="verdana">
<span id="debug"> </span>
View
8 canvas3dapi-dev/J3DXplorer/J3DXplorer.js
@@ -31,11 +31,11 @@ function J3DXplorer_main(canvasName)
scn.setRenderer(renderer);
scn.init(canvasName);
if(!renderer.isReady()){
+ var imgtag=document.getElementById("screenshot");
+ imgtag.style.display="block";
var canvas=document.getElementById(canvasName);
- var ctx=canvas.getContext('2d');
- var img=new Image();
- img.src="frontpagess.png";
- ctx.drawImage(img,0,0);
+ canvas.style.display="none";
+
}
else{
var j=0;
View
112 documentation/2.0_user_docs/index.html
@@ -182,65 +182,65 @@
</div>
<div id="index">
- <div align="center"><a href="index.html">Class Index</a>
-| <a href="files.html">File Index</a></div>
+ <div align="center"><a href="/wp-content/documentation/2.0_user_docs/index.html">Class Index</a>
+| <a href="/wp-content/documentation/2.0_user_docs/files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
- <li><i><a href="symbols/_global_.html">_global_</a></i></li>
+ <li><i><a href="/wp-content/documentation/2.0_user_docs/symbols/_global_.html">_global_</a></i></li>
- <li><a href="symbols/c3dl.html">c3dl</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.html">c3dl</a></li>
- <li><a href="symbols/c3dl.Actor.html">c3dl.Actor</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Actor.html">c3dl.Actor</a></li>
- <li><a href="symbols/c3dl.Camera.html">c3dl.Camera</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Camera.html">c3dl.Camera</a></li>
- <li><a href="symbols/c3dl.Collada.html">c3dl.Collada</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Collada.html">c3dl.Collada</a></li>
- <li><a href="symbols/c3dl.debug.html">c3dl.debug</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.debug.html">c3dl.debug</a></li>
- <li><a href="symbols/c3dl.DirectionalLight.html">c3dl.DirectionalLight</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.DirectionalLight.html">c3dl.DirectionalLight</a></li>
- <li><a href="symbols/c3dl.Effect.html">c3dl.Effect</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Effect.html">c3dl.Effect</a></li>
- <li><a href="symbols/c3dl.effects.html">c3dl.effects</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.effects.html">c3dl.effects</a></li>
- <li><a href="symbols/c3dl.EffectTemplate.html">c3dl.EffectTemplate</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.EffectTemplate.html">c3dl.EffectTemplate</a></li>
- <li><a href="symbols/c3dl.FreeCamera.html">c3dl.FreeCamera</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.FreeCamera.html">c3dl.FreeCamera</a></li>
- <li><a href="symbols/c3dl.Geometry.html">c3dl.Geometry</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Geometry.html">c3dl.Geometry</a></li>
- <li><a href="symbols/c3dl.Light.html">c3dl.Light</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Light.html">c3dl.Light</a></li>
- <li><a href="symbols/c3dl.Line.html">c3dl.Line</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Line.html">c3dl.Line</a></li>
- <li><a href="symbols/c3dl.Material.html">c3dl.Material</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Material.html">c3dl.Material</a></li>
- <li><a href="symbols/c3dl.OrbitCamera.html">c3dl.OrbitCamera</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.OrbitCamera.html">c3dl.OrbitCamera</a></li>
- <li><a href="symbols/c3dl.ParticleSystem.html">c3dl.ParticleSystem</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.ParticleSystem.html">c3dl.ParticleSystem</a></li>
- <li><a href="symbols/c3dl.PickingResult.html">c3dl.PickingResult</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PickingResult.html">c3dl.PickingResult</a></li>
- <li><a href="symbols/c3dl.Point.html">c3dl.Point</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Point.html">c3dl.Point</a></li>
- <li><a href="symbols/c3dl.PositionalLight.html">c3dl.PositionalLight</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PositionalLight.html">c3dl.PositionalLight</a></li>
- <li><a href="symbols/c3dl.Primitive.html">c3dl.Primitive</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Primitive.html">c3dl.Primitive</a></li>
- <li><a href="symbols/c3dl.PrimitiveSet.html">c3dl.PrimitiveSet</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PrimitiveSet.html">c3dl.PrimitiveSet</a></li>
- <li><a href="symbols/c3dl.Renderer.html">c3dl.Renderer</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Renderer.html">c3dl.Renderer</a></li>
- <li><a href="symbols/c3dl.RenderingObject.html">c3dl.RenderingObject</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.RenderingObject.html">c3dl.RenderingObject</a></li>
- <li><a href="symbols/c3dl.Scene.html">c3dl.Scene</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Scene.html">c3dl.Scene</a></li>
- <li><a href="symbols/c3dl.SpotLight.html">c3dl.SpotLight</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.SpotLight.html">c3dl.SpotLight</a></li>
- <li><a href="symbols/c3dl.WebGL.html">c3dl.WebGL</a></li>
+ <li><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.WebGL.html">c3dl.WebGL</a></li>
</ul>
<hr />
@@ -251,178 +251,178 @@ <h1 class="classTitle">Class Index</h1>
<div>
- <h2><a href="symbols/_global_.html">_global_</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/_global_.html">_global_</a></h2>
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.html">c3dl</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.html">c3dl</a></h2>
Prevent name conflicts by placing c3dl variables
and functions in a javascript 'namespace'.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Actor.html">c3dl.Actor</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Actor.html">c3dl.Actor</a></h2>
c3dl.Actor is a base class for 3D objects.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Camera.html">c3dl.Camera</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Camera.html">c3dl.Camera</a></h2>
c3dl.Camera is a base class for c3dl.OrbitCamera and c3dl.FreeCamera.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Collada.html">c3dl.Collada</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Collada.html">c3dl.Collada</a></h2>
c3dl.Collada represents the model data from a collada file.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.debug.html">c3dl.debug</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.debug.html">c3dl.debug</a></h2>
used to output error, warning and information to either the page or firebug.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.DirectionalLight.html">c3dl.DirectionalLight</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.DirectionalLight.html">c3dl.DirectionalLight</a></h2>
A DirectionalLight inherits from Light.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Effect.html">c3dl.Effect</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Effect.html">c3dl.Effect</a></h2>
c3dl.Effect specifies exactly how a geometric object should
be rendered.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.effects.html">c3dl.effects</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.effects.html">c3dl.effects</a></h2>
If a parameter's type is followed by square braces, it means the
parameter has a default value, therefore setting that parameter is
optional.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.EffectTemplate.html">c3dl.EffectTemplate</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.EffectTemplate.html">c3dl.EffectTemplate</a></h2>
<p>An EffectTemplate is a template for creating many Effects which have
similar rendering results.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.FreeCamera.html">c3dl.FreeCamera</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.FreeCamera.html">c3dl.FreeCamera</a></h2>
c3dl.FreeCamera A camera which can be freely moved around in a scene.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Geometry.html">c3dl.Geometry</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Geometry.html">c3dl.Geometry</a></h2>
c3dl.Geometry is a container for the primitiveSets of a
geometric object.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Light.html">c3dl.Light</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Light.html">c3dl.Light</a></h2>
This is an 'abstract' class which should not be instantiaed.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Line.html">c3dl.Line</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Line.html">c3dl.Line</a></h2>
c3dl.Line represents a line segment in 3D space.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Material.html">c3dl.Material</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Material.html">c3dl.Material</a></h2>
c3dl.Material contains values which describe the behaviour of an object when light
illuminates it.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.OrbitCamera.html">c3dl.OrbitCamera</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.OrbitCamera.html">c3dl.OrbitCamera</a></h2>
c3dl.OrbitCamera is a camera which is restricted to orbiting
a point in space.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.ParticleSystem.html">c3dl.ParticleSystem</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.ParticleSystem.html">c3dl.ParticleSystem</a></h2>
ParticleSystem is used to simulate phenomena such as fire, smoke, rain, etc.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.PickingResult.html">c3dl.PickingResult</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PickingResult.html">c3dl.PickingResult</a></h2>
c3dl.PickingResult is contains the result of the user picking something
in the scene.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Point.html">c3dl.Point</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Point.html">c3dl.Point</a></h2>
c3dl.Point is an object with a position and color which will be
rendered using OpenGL's built-in point rendering (either as a circle or
square depending on smoothing) or rendered as sphere meshes.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.PositionalLight.html">c3dl.PositionalLight</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PositionalLight.html">c3dl.PositionalLight</a></h2>
A PositionalLight inherits from Light.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Primitive.html">c3dl.Primitive</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Primitive.html">c3dl.Primitive</a></h2>
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.PrimitiveSet.html">c3dl.PrimitiveSet</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.PrimitiveSet.html">c3dl.PrimitiveSet</a></h2>
c3dl.PrimitiveSet represents a set of primitives within a
geometric class.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Renderer.html">c3dl.Renderer</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Renderer.html">c3dl.Renderer</a></h2>
base class for OpenGLES20.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.RenderingObject.html">c3dl.RenderingObject</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.RenderingObject.html">c3dl.RenderingObject</a></h2>
c3dl.RenderingObject is an object which is created dynamically
and passed to the callback function defined within an effect when
rendering objects.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.Scene.html">c3dl.Scene</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.Scene.html">c3dl.Scene</a></h2>
A Scene should be thought of as a scene on a movie set.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.SpotLight.html">c3dl.SpotLight</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.SpotLight.html">c3dl.SpotLight</a></h2>
A spotlight is a PositionalLight which can have a 'cone' of light used to
restrict what objects or parts of an object get lit.
</div>
<hr />
<div>
- <h2><a href="symbols/c3dl.WebGL.html">c3dl.WebGL</a></h2>
+ <h2><a href="/wp-content/documentation/2.0_user_docs/symbols/c3dl.WebGL.html">c3dl.WebGL</a></h2>
WebGL context.
</div>
<hr />
View
88 release.sh
@@ -0,0 +1,88 @@
+#!/bin/bash
+
+SRCNAME=canvas3dapi
+ZIPFILENAME=$SRCNAME-$1.zip
+UNCZIPFILENAME=$SRCNAME-$1-uncompressed.zip
+
+if [ $# -ne 1 -o ! -d $SRCNAME ]
+then
+ echo "Usage: ./release.sh releasenumber (in the canvas3d directory)"
+ echo "e.g.: ./release.sh 0.5"
+ exit 1
+fi
+
+if [ -f $ZIPFILENAME ]
+then
+ echo "$ZIPFILENAME already exists, giving up"
+ exit 1
+fi
+
+if [ -f $UNCZIPFILENAME ]
+then
+ echo "$UNCZIPFILENAME already exists, giving up"
+ exit 1
+fi
+
+rm -rf /tmp/$SRCNAME
+
+# don't need all the .svn files
+svn export $SRCNAME /tmp/$SRCNAME
+if [ $? -ne 0 ]
+then
+ echo "svn export failed, giving up"
+ exit 1
+fi
+
+OLDDIR=`pwd`
+cd /tmp
+
+# create 'uncompressed' zip
+zip -r $UNCZIPFILENAME $SRCNAME
+if [ $? -ne 0 ]
+then
+ echo "Failed to create zip file, giving up"
+ exit 1
+fi
+
+mv $UNCZIPFILENAME $OLDDIR
+if [ $? -ne 0 ]
+then
+ echo "Something weird happened, giving up"
+ exit 1
+fi
+
+cc $OLDDIR/jsmin.c -o jsmin
+if [ $? -ne 0 ]
+then
+ echo "Failed to compile jsmin, giving up"
+ exit 1
+fi
+
+# creat 'compressed' (normal) zip
+for NAME in `find $SRCNAME`
+do
+ if echo $NAME | grep -E ".js$" > /dev/null
+ then
+ echo "Compressing $NAME"
+ ./jsmin < $NAME > $NAME.min
+ mv $NAME.min $NAME
+ fi
+done
+
+zip -r $ZIPFILENAME $SRCNAME
+if [ $? -ne 0 ]
+then
+ echo "Failed to create zip file, giving up"
+ exit 1
+fi
+
+mv $ZIPFILENAME $OLDDIR
+if [ $? -ne 0 ]
+then
+ echo "Something weird happened, giving up"
+ exit 1
+fi
+
+echo "Release zip files $ZIPFILENAME and $UNCZIPFILENAME created"
+
+echo "Don't forget to look at releases/Release Commands.txt to make a branch"

0 comments on commit c60b976

Please sign in to comment.
Something went wrong with that request. Please try again.