How to create GLTexture from BitmapData (native v2)?


I am working on a postprocessing framework using OpenGLView on windows target, and one of the features includes a lens dirt effect which will need a texture from local file (For assets protection I want this file to be embedded using source command in project.xml). How do I upload an embedded bitmapdata to create a GLTexture? The last argument of GL.texImage2D is an ArrayBufferView but I’m not sure how to use it.

Thanks a lot.

@singmajesty =3= does @ work?

Check out the SimpleOpenGLView sample, as it should use a texture :slight_smile:

OHHHHHHHHHHH I completely forgot about that. Thanks a lot!