Jump to content

no way to update textures in Pixi 1.4...?


jcs
 Share

Recommended Posts

WebGLRenderer.updateTexture() has been removed, which means that we can no longer add textures to the "texturesToUpdate" array and have them updated.

This breaks things which use canvas objects for sprites' textures and change them dynamically (Phaser's TileMap system, for instance).

 

Is there a work-around or another way to accomplish this? I'd rather not monkey-patch in the old updateTexture() code...

 

(I understand there may be better ways than drawing to a canvas, since that loses the speed of WebGL rendering - but in some cases it is much more expedient to use a canvas)

 

thnx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...