rammer Posted May 22, 2015 Share Posted May 22, 2015 Hi, I have 4 Int32Array objects with channel data (r, g, b, a) and I want to render that with Pixi. Is there any way? Do I have to render first to a canvas and then to a texture in Pixi? Thanks. Quote Link to comment Share on other sites More sharing options...
xerver Posted May 22, 2015 Share Posted May 22, 2015 Pretty much, OpenGL has glDrawPixels but as far as I am aware it is not available in WebGL. You will probably want to do putImageData() to a canvas element and then use that as a texture. You can use PIXI.Texture.fromCanvas() though to quickly load the canvas you draw to as a PIXI.Texture object Quote Link to comment Share on other sites More sharing options...
rammer Posted May 23, 2015 Author Share Posted May 23, 2015 Ok, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.