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 available as an open source project here https://github.com/DzzD/TiGL.


Prerequiste : Titanium and GIT must be properly installed and running on your machine. To install Tianium you can refer to this Tutorial.
First clone the repository:
git clone https://github.com/DzzD/TIGLDemo
Build to Emulator or Device :
titanium build --platform android -T [device|emulator]
First install TIGL modules in 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);
}
Or with TIGLManager (highly recommended)
const TIGLManager = require("tiglmanager");
var tm;
var sprite;
function init()
{
tm = new TIGLManager(this);
sprite=tm.addSprite({url: "Resources/sprite.png"});
}
function loop()
{
sprite.x++;
sprite.x %= 100;
}
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.
BMFont(https://www.angelcode.com/products/bmfont/) is licensed under ZLIB license.
Tweenjs(https://github.com/tweenjs/tween.js/) is licensed under MIT license.