|
1 | | -Pixi Renderer |
| 1 | +Pixi Renderer |
2 | 2 | ============= |
3 | 3 |
|
4 | 4 | #### *** IMPORTANT - V2 API CHANGES *** #### |
5 | 5 |
|
6 | 6 | A heads up for anyone updating their version of pixi.js to version 2, as we have changed a couple of bits that you need to be aware of. Fortunately, there are only two changes, and both are small. |
7 | 7 |
|
8 | 8 | 1: Creating a renderer now accepts an options parameter that you can add specific settings to: |
9 | | -``` |
| 9 | +``` |
10 | 10 | // an optional object that contains the settings for the renderer |
11 | 11 | var options = { |
12 | 12 | view:myCanvas, |
13 | 13 | resolution:1 |
14 | 14 | }; |
15 | 15 |
|
16 | | -var renderer = new PIXI.WebGLRenderer(800, 600, options) |
| 16 | +var renderer = new PIXI.WebGLRenderer(800, 600, options) |
17 | 17 | ``` |
18 | 18 |
|
19 | | -2: A ```PIXI.RenderTexture``` now accepts a ```PIXI.Matrix``` as its second parameter instead of a point. This gives you much more flexibility: |
| 19 | +2: A ```PIXI.RenderTexture``` now accepts a ```PIXI.Matrix``` as its second parameter instead of a point. This gives you much more flexibility: |
20 | 20 |
|
21 | 21 | ``` myRenderTexture.render(myDisplayObject, myMatrix) ``` |
22 | 22 |
|
23 | 23 | Check out the docs for more info! |
24 | 24 |
|
25 | 25 |
|
26 | | - |
| 26 | + |
27 | 27 |
|
28 | 28 | [<img src="http://www.pixijs.com/wp-content/uploads/2013/05/headerPanel_projects-898x342.jpg">](http://www.pixijs.com/projects) |
29 | 29 | #### JavaScript 2D Renderer #### |
@@ -189,3 +189,4 @@ This content is released under the (http://opensource.org/licenses/MIT) MIT Lice |
189 | 189 | - Optimizations in the form of caching variables within functions if they are accessed a lot. |
190 | 190 | - Gave DisplayObject default width/height properties, and changed the children bounds version of width/height on DisplayObjectContainer to be optional |
191 | 191 | - Pivot points of text are based on their alignment, e.g. the pivot point of right aligned fields is at the right edge of the text. |
| 192 | +- Dropped use of ActiveXObject in PIXI.AjaxRequest because we don't care aobut old versions of IE. |
0 commit comments