I’m converting an app and I have a Byte[ ] of colours that I want to show in a Texture2D. Is there any easy way to convert from the byte array (defined the way GL’s TexImage2D wants it) to a Texture2D?
I’ve tried iterating through the bytes, but I’m not getting very far with it.
GL.TexImage2D(TextureTarget.Texture2D, 0, PixelInternalFormat.Three, 640, 480, 0, OpenTK.Graphics.OpenGL.PixelFormat.Rgb, PixelType.UnsignedByte, (byte[])rgbHandleFront.Target);