| 1 |
/** |
|---|
| 2 |
* FLARToolKit example launcher |
|---|
| 3 |
* -------------------------------------------------------------------------------- |
|---|
| 4 |
* Copyright (C)2010 saqoosha |
|---|
| 5 |
* |
|---|
| 6 |
* This program is free software: you can redistribute it and/or modify |
|---|
| 7 |
* it under the terms of the GNU General Public License as published by |
|---|
| 8 |
* the Free Software Foundation, either version 3 of the License, or |
|---|
| 9 |
* (at your option) any later version. |
|---|
| 10 |
* |
|---|
| 11 |
* This program is distributed in the hope that it will be useful, |
|---|
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 |
* GNU General Public License for more details. |
|---|
| 15 |
* |
|---|
| 16 |
* You should have received a copy of the GNU General Public License |
|---|
| 17 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 18 |
* |
|---|
| 19 |
* For further information please contact. |
|---|
| 20 |
* http://www.libspark.org/wiki/saqoosha/FLARToolKit |
|---|
| 21 |
* <saq(at)saqoosha.net> |
|---|
| 22 |
* |
|---|
| 23 |
* Contributors |
|---|
| 24 |
* saqoosha |
|---|
| 25 |
* rokubou |
|---|
| 26 |
*/ |
|---|
| 27 |
package { |
|---|
| 28 |
import examples.*; |
|---|
| 29 |
|
|---|
| 30 |
import flash.display.Sprite; |
|---|
| 31 |
|
|---|
| 32 |
[SWF(width=640, height=480, backgroundColor=0x808080, frameRate=30)] |
|---|
| 33 |
public class Main extends Sprite |
|---|
| 34 |
{ |
|---|
| 35 |
public function Main():void |
|---|
| 36 |
{ |
|---|
| 37 |
// simply uncomment whichever tutorial/example you would like to launch. |
|---|
| 38 |
|
|---|
| 39 |
// Papervision3d(Simple cube) |
|---|
| 40 |
// this.addChild(new FLARToolKitExample_PV3D()); |
|---|
| 41 |
|
|---|
| 42 |
// Papervison3d collada model |
|---|
| 43 |
// this.addChild(new FLARToolKitExample_ColladaData()); |
|---|
| 44 |
|
|---|
| 45 |
// Single Marker sample Papervision3D |
|---|
| 46 |
this.addChild(new FLARTK_Example_Single_SimpleCube_PV3D()); |
|---|
| 47 |
|
|---|
| 48 |
// Multi pattern Marker sample Papervision3D |
|---|
| 49 |
// this.addChild(new FLARTK_Example_Multiple_SimpleCube_PV3D()); |
|---|
| 50 |
|
|---|
| 51 |
// Single Marker sample Papervision3D(Wide Display / 16:9) |
|---|
| 52 |
// this.addChild(new FLARTK_Example_Single_SimpleCube_PV3D_Wide()); |
|---|
| 53 |
|
|---|
| 54 |
// Single ID Marker sample Papervision3D |
|---|
| 55 |
// this.addChild(new FLARTK_Example_Single_IDMarker_PV3D()); |
|---|
| 56 |
|
|---|
| 57 |
// Multi ID sample Papervision3D |
|---|
| 58 |
// this.addChild(new FLARTK_Example_Multiple_IDMarker_PV3D()); |
|---|
| 59 |
|
|---|
| 60 |
// Single Marker sample Away3D |
|---|
| 61 |
// this.addChild(new FLARTK_Example_Single_SimpleCube_Away3D()); |
|---|
| 62 |
|
|---|
| 63 |
// Single Marker sample Away3D Lite |
|---|
| 64 |
// this.addChild(new FLARTK_Example_Single_SimpleCube_Away3DLite()); |
|---|
| 65 |
|
|---|
| 66 |
// Single Marker Manager sample |
|---|
| 67 |
// this.addChild(new FLARTK_Example_SingleManager_PV3D()); |
|---|
| 68 |
|
|---|
| 69 |
// Single ID Marker Manager sample |
|---|
| 70 |
// this.addChild(new FLARTK_Example_SingleNyIDManager()); |
|---|
| 71 |
} |
|---|
| 72 |
} |
|---|
| 73 |
} |
|---|