mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
This commit is contained in:
parent
039213cf50
commit
55256ada95
23 changed files with 409 additions and 110 deletions
|
|
@ -32,7 +32,7 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
|
||||
var transparent = false;
|
||||
var antialias = true;
|
||||
var canvas = null; // lets pixi create one
|
||||
var canvas = DomController.getCanvas();
|
||||
|
||||
if(Settings.USE_WEBGL) {
|
||||
this.renderer = new PIXI.WebGLRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT, canvas, transparent, antialias);
|
||||
|
|
@ -42,7 +42,7 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
console.log('CanvasRenderer - not using WebGL!')
|
||||
}
|
||||
|
||||
this.stage = new PIXI.Stage(0x333333);
|
||||
this.stage = new PIXI.Stage(/*0x333333*/);
|
||||
|
||||
this.initCamera();
|
||||
this.initInfo();
|
||||
|
|
@ -305,5 +305,9 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
this.loader.visible = progress < 100;
|
||||
};
|
||||
|
||||
PixiView.prototype.test = function() {
|
||||
console.log(this.stage.children)
|
||||
};
|
||||
|
||||
return PixiView;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue