mirror of
https://github.com/wassname/phaser.git
synced 2026-07-02 17:00:42 +08:00
Updated docs - they now actually list the new body methods :)
This commit is contained in:
@@ -166,6 +166,10 @@
|
||||
<a href="Phaser.Game.html">Game</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.GameObjectCreator.html">GameObjectCreator</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
|
||||
</li>
|
||||
@@ -254,6 +258,38 @@
|
||||
<a href="Phaser.Physics.Arcade.html">Arcade</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Body.html">Body</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.CollisionGroup.html">CollisionGroup</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.ContactMaterial.html">ContactMaterial</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.InversePointProxy.html">InversePointProxy</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Material.html">Material</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.PointProxy.html">PointProxy</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Spring.html">Spring</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.World.html">World</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Plugin.html">Plugin</a>
|
||||
</li>
|
||||
@@ -485,12 +521,54 @@ Phaser.RenderTexture = function (game, width, height, key) {
|
||||
*/
|
||||
this.type = Phaser.RENDERTEXTURE;
|
||||
|
||||
/**
|
||||
* @property {Phaser.Point} _temp - Internal var.
|
||||
* @private
|
||||
*/
|
||||
this._temp = new Phaser.Point();
|
||||
|
||||
PIXI.RenderTexture.call(this, width, height);
|
||||
|
||||
};
|
||||
|
||||
Phaser.RenderTexture.prototype = Object.create(PIXI.RenderTexture.prototype);
|
||||
Phaser.RenderTexture.prototype.constructor = Phaser.RenderTexture;
|
||||
|
||||
/**
|
||||
* This function will draw the display object to the texture.
|
||||
*
|
||||
* @method Phaser.RenderTexture.prototype.renderXY
|
||||
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapText|Phaser.Group} displayObject The display object to render to this texture.
|
||||
* @param {number} x - The x position to render the object at.
|
||||
* @param {number} y - The y position to render the object at.
|
||||
* @param {boolean} clear - If true the texture will be cleared before the display object is drawn.
|
||||
*/
|
||||
Phaser.RenderTexture.prototype.renderXY = function (displayObject, x, y, clear) {
|
||||
|
||||
this._temp.set(x, y);
|
||||
|
||||
this.render(displayObject, this._temp, clear);
|
||||
|
||||
}
|
||||
|
||||
// Documentation stubs
|
||||
|
||||
/**
|
||||
* This function will draw the display object to the texture.
|
||||
*
|
||||
* @method Phaser.RenderTexture.prototype.render
|
||||
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapText|Phaser.Group} displayObject The display object to render to this texture.
|
||||
* @param {Phaser.Point} position - A Point object containing the position to render the display object at.
|
||||
* @param {boolean} clear - If true the texture will be cleared before the display object is drawn.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Resize this RenderTexture to the given width and height.
|
||||
*
|
||||
* @method Phaser.RenderTexture.prototype.resize
|
||||
* @param {number} width - The new width of the RenderTexture.
|
||||
* @param {number} height - The new height of the RenderTexture.
|
||||
*/
|
||||
</pre>
|
||||
</article>
|
||||
</section>
|
||||
@@ -512,7 +590,7 @@ Phaser.RenderTexture.prototype.constructor = Phaser.RenderTexture;
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Wed Feb 19 2014 05:26:20 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Fri Feb 21 2014 15:36:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user