Skip to content

Commit 9beb336

Browse files
committed
Restructured
1 parent 7cf7dcd commit 9beb336

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ More info & Documentation: http://impactjs.com/ejecta
77
Ejecta is published under the [MIT Open Source License](http://opensource.org/licenses/mit-license.php).
88

99

10+
## Quick Start
11+
12+
1. Create a folder called `App` within this Xcode project
13+
2. Copy your canvas application into the `App` folder
14+
3. Ensure you have at least 1 file named `index.js`
15+
4. Build the Xcode project
16+
17+
For an example application, copy `./index.js` into the `App` folder.
18+
1019
## Recent Breaking Changes
1120

1221
### 2016-06-23 - Typed Arrays are fast again!
@@ -69,8 +78,7 @@ ctx.scale( window.devicePixelRatio, window.devicePixelRatio );
6978

7079
## WebGL Support
7180

72-
Recently WebGL support has been merged into the main branch. A huge thanks goes to @vikerman - he did most of the grunt work of the WebGL implementation. To have the WebGL alongside Canvas2D, I modified the old 2D implementation to use OpenGL ES2 instead of ES1, just like WebGL itself.
73-
81+
Ejecta supports WebGL out of the box, alongside with Canvas2D. You can create WebGL textures from Canvas2D instances and also draw WebGL Canvases into 2D Contexts as images. Note that you can't change the "mode" (2D or WebGL) of a Context after it has been created.
7482

7583

7684
## Three.js on iOS with Ejecta
@@ -81,14 +89,6 @@ Ejecta always creates the screen Canvas element for you. You have to hand this C
8189
renderer = new THREE.WebGLRenderer( {canvas: document.getElementById('canvas')} );
8290
```
8391

84-
85-
## How to use
86-
87-
1. Create a folder called `App` within this Xcode project
88-
2. Copy your canvas application into the `App` folder
89-
3. Ensure you have at least 1 file named `index.js`
90-
4. Build the Xcode project
91-
92-
For an example application, copy `./index.js` into the `App` folder. An example App folder with the Three.js [Walt CubeMap demo](http://mrdoob.github.com/three.js/examples/webgl_materials_cubemap.html) can be found here:
92+
An example App folder with the Three.js [Walt CubeMap demo](http://mrdoob.github.com/three.js/examples/webgl_materials_cubemap.html) can be found here:
9393

9494
http://phoboslab.org/files/Ejecta-ThreeJS-CubeMap.zip

0 commit comments

Comments
 (0)