Serializing and sending a JOGL Texture over Kryonet

Posted in networking as well.

We are currently implementing Kryo. When trying to serialize things across the network, we would like to find the best way to send JOGL Texture object. Since this object isn’t serializable by Kryonet, we can’t send it with our Image wrapper. Is there a way to deconstruct/reconstruct the Image Data from the JOGL Texture object, in a form that we can serialize (i.e. a class or data structure that ends up just holding primitives)? Instinct tells me there must be some way to get the raw pixel data from a Texture and rebuild the Texture using TextureIO, but I’m not sure.