Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Changes in the usage of RenderingOptions and TextStyle classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Nov 25, 2014
1 parent 6871a35 commit b7611c5
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 228 deletions.
12 changes: 0 additions & 12 deletions demos/_output/hx-pixi-basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ demos.basics.Main.prototype = {
this._renderer.render(this._stage);
}
};
var pixi = {};
pixi.utils = {};
pixi.utils.RenderingOptions = function(view,resolution,transparent) {
this.preserveDrawingBuffer = false;
this.antialias = false;
this.clearBeforeRender = true;
this.resolution = 1;
this.transparent = false;
if(view != null) this.view = view;
if(resolution != null) this.resolution = resolution;
if(transparent != null) this.transparent = transparent;
};
var $_, $fid = 0;
function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $fid++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; o.hx__closures__[m.__id__] = f; } return f; }
demos.basics.Main.main();
Expand Down
20 changes: 1 addition & 19 deletions demos/_output/hx-pixi-bitmaptext.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,12 @@ demos.bitmaptext.Main.prototype = {
this._renderer.render(this._stage);
}
,onAssetsLoaded: function() {
var bitmapFontText = new PIXI.BitmapText("bitmap fonts are\n now supported!",new pixi.text.BitmapTextStyle("60px Desyrel","left"));
var bitmapFontText = new PIXI.BitmapText("bitmap fonts are\n now supported!",{ font : "60px Desyrel"});
bitmapFontText.position.x = 400 - bitmapFontText.width / 2;
bitmapFontText.position.y = 300 - bitmapFontText.height / 2;
this._stage.addChild(bitmapFontText);
}
};
var pixi = {};
pixi.text = {};
pixi.text.BitmapTextStyle = function(font,align) {
this.align = "left";
if(font != null) this.font = font;
if(align != null) this.align = align;
};
pixi.utils = {};
pixi.utils.RenderingOptions = function(view,resolution,transparent) {
this.preserveDrawingBuffer = false;
this.antialias = false;
this.clearBeforeRender = true;
this.resolution = 1;
this.transparent = false;
if(view != null) this.view = view;
if(resolution != null) this.resolution = resolution;
if(transparent != null) this.transparent = transparent;
};
var $_, $fid = 0;
function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $fid++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; o.hx__closures__[m.__id__] = f; } return f; }
demos.bitmaptext.Main.main();
Expand Down
12 changes: 0 additions & 12 deletions demos/_output/hx-pixi-blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ demos.blur.Main.prototype = {
this._renderer.render(this._stage);
}
};
var pixi = {};
pixi.utils = {};
pixi.utils.RenderingOptions = function(view,resolution,transparent) {
this.preserveDrawingBuffer = false;
this.antialias = false;
this.clearBeforeRender = true;
this.resolution = 1;
this.transparent = false;
if(view != null) this.view = view;
if(resolution != null) this.resolution = resolution;
if(transparent != null) this.transparent = transparent;
};
var $_, $fid = 0;
function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $fid++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; o.hx__closures__[m.__id__] = f; } return f; }
Math.NaN = Number.NaN;
Expand Down
29 changes: 1 addition & 28 deletions demos/_output/hx-pixi-colourmatrix.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b7611c5

Please sign in to comment.