mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Enabled PIXI.VideoTexture support.
This commit is contained in:
parent
48f04f1ec5
commit
b196e4f17e
3 changed files with 5 additions and 2 deletions
|
@ -86,6 +86,7 @@
|
|||
<script src="$path/src/pixi/textures/BaseTexture.js"></script>
|
||||
<script src="$path/src/pixi/textures/Texture.js"></script>
|
||||
<script src="$path/src/pixi/textures/RenderTexture.js"></script>
|
||||
<script src="$path/src/pixi/textures/VideoTexture.js"></script>
|
||||
|
||||
<script src="$path/src/pixi/filters/AbstractFilter.js"></script>
|
||||
|
||||
|
|
|
@ -42,12 +42,13 @@ PIXI.VideoTexture = function( source, scaleMode )
|
|||
|
||||
};
|
||||
|
||||
PIXI.VideoTexture.prototype = Object.create( PIXI.BaseTexture.prototype );
|
||||
PIXI.VideoTexture.prototype = Object.create( PIXI.BaseTexture.prototype );
|
||||
|
||||
PIXI.VideoTexture.constructor = PIXI.VideoTexture;
|
||||
|
||||
PIXI.VideoTexture.prototype._onUpdate = function()
|
||||
{
|
||||
|
||||
if(this.autoUpdate)
|
||||
{
|
||||
window.requestAnimationFrame(this.updateBound);
|
||||
|
@ -87,7 +88,7 @@ PIXI.VideoTexture.prototype.onCanPlay = function()
|
|||
// prevent multiple loaded dispatches..
|
||||
if( !this.__loaded ){
|
||||
this.__loaded = true;
|
||||
this.dispatchEvent( { type: 'loaded', content: this } );
|
||||
// this.dispatchEvent( { type: 'loaded', content: this } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
"src/pixi/textures/BaseTexture.js",
|
||||
"src/pixi/textures/Texture.js",
|
||||
"src/pixi/textures/RenderTexture.js",
|
||||
"src/pixi/textures/VideoTexture.js",
|
||||
|
||||
"src/pixi/filters/AbstractFilter.js",
|
||||
|
||||
|
|
Loading…
Reference in a new issue