This project, TIGL Demo, give an overview of features offered by TIGL with Titanium mobile application. It also offer latest release of TIGL module.
TIGL module is intented to enable easy OpenGL rendering of 2d scenegraph from mobile applications. It offer a dedicated Titanium module to use it with Titanium Appcelerator Application.
For now Titanium TIGL module only support Android devices (you are welcome to help us in porting it to IOS.)
TIGL is still in early development and not yet available as an open source project, note that opensourcing is planned once the project will be more mature.
- An Android scenegraph 2d library using OpenGL
- A Titanium Java module wich make the bridge between Titanium and the Android library
- A JavaScript module wich offer an optimized and more convenient way to controle the java module
Prerequiste : Titanium and GIT must be properly installed and running on your machine.
-
First clone the repository:
git clone https://github.com/DzzD/TIGLDemo
-
Build to Emulator or Device :
titanium build --platform android -T [device|emulator]
Please keep in mind that this is still a preview release not intended to be used in production
-
First install TIGL modules in your own project :
-- Download latest TIGL zip release from this repository and paste the zip file into the root directory of your project (it will be automatically uncompressed and installed at first build of your project).
-- Or alternativly you can also copy paste TIGLDemo module directory and tiglmanager.js module file to your own project.
-
Enable TIGL module in tiapp.xml
<modules> <module platform="android">fr.dzzd.tigl</module> </modules>
-
Modify a XML view to embed a TIGL view.
<TIGLView id="glView" module="fr.dzzd.tigl" onInit="init" onLoop="loop"/>
-
Modify the view controller to load, move and interact with sprite.
var spriteUid; function init() { this.addSprite({url: "Resources/sprite.png", x: 0, y: 50}); } function loop() { this.setEntityPositionById(spriteUid, 50 , 50); }
DzzD and associated marks and logos are trademarks of SARL DzzD.
TIGL is Copyright (c) 2020-2021 by DzzD. All Rights Reserved.
TIGL is licensed under the GNU general public License (Version 3+). Please see the LICENSE file for the full license.