WebGL Render Bug Fix
This commit is contained in:
parent
953a19ff5c
commit
c6e6f7458e
36 changed files with 729 additions and 340 deletions
|
@ -166,7 +166,9 @@
|
|||
|
||||
|
||||
<div class="box intro">
|
||||
<p>The Graphics class contains a set of methods that you can use to create primitive shapes and lines.</p>
|
||||
<p>The Graphics class contains a set of methods that you can use to create primitive shapes and lines.
|
||||
It is important to know that with the webGL renderer only simple polys can be filled at this stage
|
||||
Complex polys will not be filled. Heres an example of a complex poly: http://www.goodboydigital.com/wp-content/uploads/2013/06/complexPolygon.png</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -765,7 +767,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l83"><code>src/pixi/primitives/Graphics.js:83</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l85"><code>src/pixi/primitives/Graphics.js:85</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -857,7 +859,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l165"><code>src/pixi/primitives/Graphics.js:165</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l167"><code>src/pixi/primitives/Graphics.js:167</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1017,7 +1019,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l126"><code>src/pixi/primitives/Graphics.js:126</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l128"><code>src/pixi/primitives/Graphics.js:128</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1152,7 +1154,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l145"><code>src/pixi/primitives/Graphics.js:145</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l147"><code>src/pixi/primitives/Graphics.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1302,7 +1304,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l107"><code>src/pixi/primitives/Graphics.js:107</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l109"><code>src/pixi/primitives/Graphics.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1424,7 +1426,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l96"><code>src/pixi/primitives/Graphics.js:96</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l98"><code>src/pixi/primitives/Graphics.js:98</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1584,7 +1586,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l32"><code>src/pixi/primitives/Graphics.js:32</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l34"><code>src/pixi/primitives/Graphics.js:34</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1707,7 +1709,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l71"><code>src/pixi/primitives/Graphics.js:71</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l73"><code>src/pixi/primitives/Graphics.js:73</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2237,7 +2239,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l53"><code>src/pixi/primitives/Graphics.js:53</code></a>
|
||||
<a href="../files/src_pixi_primitives_Graphics.js.html#l55"><code>src/pixi/primitives/Graphics.js:55</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
|
||||
|
||||
<div class="foundat">
|
||||
Defined in: <a href="../files/src_pixi_InteractionManager.js.html#l519"><code>src/pixi/InteractionManager.js:519</code></a>
|
||||
Defined in: <a href="../files/src_pixi_InteractionManager.js.html#l524"><code>src/pixi/InteractionManager.js:524</code></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -200,7 +200,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l519"><code>src/pixi/InteractionManager.js:519</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l524"><code>src/pixi/InteractionManager.js:524</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -270,6 +270,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property">
|
||||
<a href="#property_originalEvent">originalEvent</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property">
|
||||
|
@ -339,7 +346,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l543"><code>src/pixi/InteractionManager.js:543</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l555"><code>src/pixi/InteractionManager.js:555</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -428,7 +435,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l525"><code>src/pixi/InteractionManager.js:525</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l530"><code>src/pixi/InteractionManager.js:530</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -446,6 +453,50 @@
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_originalEvent" class="property item">
|
||||
<h3 class="name"><code>originalEvent</code></h3>
|
||||
<span class="type">Event</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
Defined in
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l547"><code>src/pixi/InteractionManager.js:547</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>When passed to an event handler, this will be the original DOM Event that was captured</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -472,7 +523,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l535"><code>src/pixi/InteractionManager.js:535</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l540"><code>src/pixi/InteractionManager.js:540</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
|
|
@ -167,6 +167,27 @@
|
|||
|
||||
<div class="box intro">
|
||||
<p>A RenderTexture is a special texture that allows any pixi displayObject to be rendered to it.</p>
|
||||
|
||||
<p><strong>Hint</strong>: All DisplayObjects (exmpl. Sprites) that renders on RenderTexture should be preloaded.
|
||||
Otherwise black rectangles will be drawn instead. </p>
|
||||
|
||||
<p>RenderTexture takes snapshot of DisplayObject passed to render method. If DisplayObject is passed to render method, position and rotation of it will be ignored. For example:</p>
|
||||
|
||||
<pre class="code prettyprint"><code>var renderTexture = new PIXI.RenderTexture(800, 600);
|
||||
var sprite = PIXI.Sprite.fromImage("spinObj_01.png");
|
||||
sprite.position.x = 800/2;
|
||||
sprite.position.y = 600/2;
|
||||
sprite.anchor.x = 0.5;
|
||||
sprite.anchor.y = 0.5;
|
||||
renderTexture.render(sprite);
|
||||
</code></pre>
|
||||
|
||||
<p>Sprite in this case will be rendered to 0,0 position. To render this sprite at center DisplayObjectContainer should be used:</p>
|
||||
|
||||
<pre class="code prettyprint"><code>var doc = new PIXI.DisplayObjectContainer();
|
||||
doc.addChild(sprite);
|
||||
renderTexture.render(doc); // Renders to center of renderTexture
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -513,7 +534,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_textures_RenderTexture.js.html#l92"><code>src/pixi/textures/RenderTexture.js:92</code></a>
|
||||
<a href="../files/src_pixi_textures_RenderTexture.js.html#l112"><code>src/pixi/textures/RenderTexture.js:112</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue