2016-10-05 06:30:30 +00:00
|
|
|
var DOM = {
|
2016-10-05 10:13:48 +00:00
|
|
|
body: $('body'),
|
|
|
|
img: $('img')
|
2016-10-05 06:30:30 +00:00
|
|
|
};
|
2016-10-05 08:49:25 +00:00
|
|
|
|
2016-10-05 10:13:48 +00:00
|
|
|
var Controller = new dat.GUI();
|
2016-10-05 08:49:25 +00:00
|
|
|
|
|
|
|
|
2016-10-05 10:13:48 +00:00
|
|
|
|
|
|
|
/* [1] Initialisation
|
|
|
|
=========================================================*/
|
|
|
|
var init = function(){
|
|
|
|
this.src = 'front:male:1.jpg';
|
|
|
|
|
|
|
|
Controller.add(this, 'src', this._images);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* [2] Routine principale
|
|
|
|
=========================================================*/
|
2016-10-05 08:49:25 +00:00
|
|
|
var process = function(){
|
2016-10-05 10:13:48 +00:00
|
|
|
console.warn('PROCESS');
|
|
|
|
|
|
|
|
// TODO: Code here
|
2016-10-05 08:49:25 +00:00
|
|
|
log('Image loaded');
|
2016-10-05 10:13:48 +00:00
|
|
|
|
2016-10-05 08:49:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [x] Chargement image
|
|
|
|
=========================================================*/
|
2016-10-05 10:13:48 +00:00
|
|
|
var iL = new ImageLoader( DOM.img, init, process );
|